简体   繁体   English

RefinementList无法处理我的数据

[英]RefinementList not working on my data

I'm currently using searchkit component for reactjs UI project. 我目前正在为reactjs UI项目使用searchkit组件。 We have our own data, but RefinementList component is not working on it. 我们有自己的数据,但RefinementList组件无法使用。

<RefinementListFilter field="type.raw" id="type" operator="OR />

Is there any setup needed for elasticsearch data about the .raw? 关于.raw的elasticsearch数据是否需要任何设置? Thanks for help! 感谢帮助!

Which version of Elastic are you using? 您正在使用哪个版本的Elastic? The default name for keyword fields changed from Elastic v2.x to 5.x. 关键字字段的默认名称从Elastic v2.x更改为5.x。 It's now .keyword . 现在是.keyword

So in your code, try changing "type.raw" to "type.keyword", if you're not using an index template. 因此,如果您未使用索引模板,请尝试在代码中将“ type.raw”更改为“ type.keyword”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 反应InstantSearch RefinementList transformItems不起作用 - React InstantSearch RefinementList transformItems not working 如何防止我的细化列表组件重新渲染和丢失状态? - How to prevent my refinementList component from rerendering and losing state? Algolia - 关闭模态时存储 RefinementList 值 - Algolia - Store RefinementList value when close Modal 在向前端显示时反转我的数据不起作用为什么..? - reverse my data while showing to frontend side is not working why..? 从 redux 获取数据。 为什么我的加载屏幕不起作用? - Getting the data from redux. Why is my loading Screen not working? 我在 React 中使用来自一组对象的数据的三元操作不起作用 - My ternary operarion with data from an arrray of objects in React is not working 我的 multi select 不工作,我无法将数据保存到数据库中 - My multi select is not working, and I can't save data into database 我的 MUI select 在反应 js 中无法使用 map function 处理我的数组数据 - My MUI select not working with my array data with map function in react js 为什么我的地图功能无法在浏览器上显示 API 数据? - why my map function is not working to display API data on browser? 我的 useState 钩子没有自我更新,当我尝试使用过滤器获取数据时,它不起作用 - My useState hook is not updating itself and when i am trying to get data using filter, its not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM