Ah, ok. We were talking about different things. Filters is kind of overloaded in Solr/lucene, it's easy to be confused.
No, you do not have to deal with analyzers or tokenfilters in your scenario. But let's back up a bit here. How are permissions for documents stored? Because if there's an identifier in the document indicating the user has access (say a role-based permission scheme with a relatively small number of auth tokens, say less than a few hundred), you don't need to write any custom code at all, simply append &fq=auth_token_field:(tok1 tok2, tok3) to the query. This isn't a good solution if the users have permissions set on individual documents though since the fq clause could potentially be very, very, very large. So let's delve into the problem before deciding on a solution, this may be an XY problem. Best Erick On Wed, Jan 26, 2011 at 10:48 AM, Valiveti <narasimha.valiv...@gmail.com>wrote: > > I am new to using Solr and lucene. > > I wrote a custom filter. > > The logic is build based on a multi field value of the document found. Only > the documents that the user has read access should be returned back. > > I would like this custom filter to be used during search and filter out the > documnets. > > Is there a way that this filter can be configured to the default search > handlers to be picked during search? > > I havent written any analyzers or tokenfilters. Are they needed for this > scenario? > > Thanks, > Valiveti > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-Configure-Solr-to-pick-my-lucene-custom-filter-tp2331928p2354772.html > Sent from the Solr - User mailing list archive at Nabble.com. >