开发者

Solr indexing problem

开发者 https://www.devze.com 2023-01-07 04:33 出处:网络
I am new to Solr. When i index the files, every variable gets indexed, but some are not searchable, how can i stop solr from displaying any resul开发者_如何学Gots in that case.If you want SOLR to not

I am new to Solr. When i index the files, every variable gets indexed, but some are not searchable, how can i stop solr from displaying any resul开发者_如何学Gots in that case.


If you want SOLR to not search all the fields, you can be very specific in your query about what fields to search. This is probably the best for performance too:

(title:grisham) OR (author:grisham) OR (publisher:grisham)

Alternatively, you can set "indexed=false" but "stored=true" in your schema if you never want to search or sort by those fields. If you do want to search or sort on those fields then you will want to index them.


It could be that you are not setting the "rows" parameter- try putting ...&rows=100... into your URL.

Solr defaults to max 10 results if "rows" is not set

0

精彩评论

暂无评论...
验证码 换一张
取 消