I may not be understanding the question correctly, but I think the dismax parser would solve this since you can specify the fields that you want to search against. So you just need a pre-login field list and a post-login field list in your application logic. Or like pravesh suggested, create multiple search handlers in solr and give each a different set of default or mandatory field list.
Brandon Ramirez | Office: 585.214.5413 | Fax: 585.295.4848 Software Engineer II | Element K | www.elementk.com -----Original Message----- From: pravesh [mailto:suyalprav...@yahoo.com] Sent: Monday, October 10, 2011 5:32 AM To: solr-user@lucene.apache.org Subject: Re: searching documents partially 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.