Re: How to Configure Solr to pick my lucene custom filter

2011-01-26 Thread Valiveti
We thought of using "fq". But that seems not to suit our scenario. Both denial and Grant access permissions are stored on the documnet as rules. The order of the rules also need to be considered. We might have a huge list of values for the ACL field. Each value is considered to be a rule. Sampl

Re: How to Configure Solr to pick my lucene custom filter

2011-01-26 Thread Erick Erickson
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 identi

Re: How to Configure Solr to pick my lucene custom filter

2011-01-26 Thread Valiveti
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. I

Re: How to Configure Solr to pick my lucene custom filter

2011-01-25 Thread Erick Erickson
First, let's be sure we're talking about the same thing. My response was for adding a filter to your analysis chain for a field in Schema.xml. Are you talking about a different sort of filter? Best Erick On Tue, Jan 25, 2011 at 4:09 PM, Valiveti wrote: > > Hi Eric, > > Thanks for the reply. > >

Re: How to Configure Solr to pick my lucene custom filter

2011-01-25 Thread Valiveti
Hi Eric, Thanks for the reply. I Did see some entries in the solrconfig.xml for adding custom reposneHandlers, queryParsers and queryResponseWriters. Bit could not find the one for adding the custom filter. Could you point to the exact location or syntax to be used. Thanks, Valiveti -- Vie

Re: How to Configure Solr to pick my lucene custom filter

2011-01-25 Thread Erick Erickson
Presumably your custom filter is in a jar file. Drop that jar file in /lib and refer it from your schema.xml file by its full name (e.g. com.yourcompany.filter.yourcustomfilter) just like the other filters and it should work fine. You can also put your jar anywhere you'd like and alter solrconfig.