Brandon Ramirez wrote: > > 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:suyalpravesh@] > Sent: Monday, October 10, 2011 5:32 AM > To: solr-user@.apache > 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. >
@pravesh: I want to hide some fields from non-logged users, and thank you for your response. i was thinking of adding a duplicate field too but then i got confused when i think about default search field... if my default search field is content field, then how to make a search in content_dup fields at the same time? i guess brandon's idea can work here but i dont know how to use dismax so if i am missing some point here, any explanation would be welcomed... and as another idea, if i use different indexes, is it possible to make search on them? or is it possible to define the index which i will be making a search in, in query time? ----- Zeki ama calismiyor... Calissa yapar... -- View this message in context: http://lucene.472066.n3.nabble.com/searching-documents-partially-tp3408429p3411281.html Sent from the Solr - User mailing list archive at Nabble.com.