tags:

views:

68

answers:

1

Hello,

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.

+1  A: 

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.

Aaron D