Solr Index appears to be valid - but returns no results

ⅰ亾dé卋堺 提交于 2019-11-29 01:38:48
Mauricio Scheffer

Probably you don't have a <defaultSearchField> correctly set up. See this question.

Another possibility: your field is of type string instead of text. String fields, in contrast to text fields, are not analyzed, but stored and indexed verbatim.

With solr 4, I had to solve this as per Mauricio's answer by defining type="text_en" to the field.

With solr 6, use text_general.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!