| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

searchkit - React搜索组件

searchkit - React组件。提供最简便的方式来利用Elasticsearch构建一个强大的搜索体验。


See full Documentation or Getting Started

Quick Intro

Live demo

const host = "https://kili-eu-west-1.searchly.com/movies/"  const searchkit = new SearchkitManager(host, {    multipleSearchers:false,    basicAuth:"read:teetndhjnrspbzxxyfxmf5fb24suqxuj"  })    const App = ()=> (    <SearchkitProvider searchkit={searchkit}>      <div>        <div className="example-search-site__query">          <SearchBox           autofocus={true}           searchOnChange={true}           prefixQueryFields={["actors^1","type^2","languages","title^10"]}/>        </div>        <div className="example-search-site__applied-filters">          <SelectedFilters/>          <ResetFilters/>          <HitsStats/>        </div>        <div className="example-search-site__filters">          <HierarchicalMenuFilter            fields={["type.raw", "genres.raw"]}            title="Categories"            id="categories"/>          <RefinementListFilter            id="actors"            title="Actors"            field="actors.raw"            operator="AND"            size={10}/>        </div>        <div className="example-search-site__results">          <Hits hitsPerPage={10}/>        </div>      </div>    </SearchkitProvider>  )    ReactDOM.render(<App/>, document.getElementById('root'))

项目地址: https://github.com/searchkit/searchkit

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1451979073480.html
searchkit ElasticSearch 搜索引擎