[英]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.