Reputation: 113
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 results in that case.
Upvotes: 1
Views: 1159
Reputation: 6235
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
Upvotes: 0
Reputation: 5876
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.
Upvotes: 1