Can you clarify following:

1)  Is it that: You want to hide some documents from search when user is not
logged-in?
 OR
2)  Is it that: You want to hide some fields of some documents from search
when user is not logged-in?

For Point 2; one solution can be that while indexing the documents, you can
re-index same field(s) twice. Lets say; /content/ & /content_dup/. (Similar
treatment can be given to other fields, which requires this restriction)

At the index time you set /content/ for all documents, but set /content_dup/
only for documents/fields which you want to appear in search when user is
not logged-in.

At search time, when user is not logged-in then search on the /content_dup/
field, and when user is logged-in then search on the /content/ field.


Another way could be:

Just register your search-handler with another name and change the default
search fields etc.

I don't know that much this helps :)

--
View this message in context: 
http://lucene.472066.n3.nabble.com/searching-documents-partially-tp3408429p3409022.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to