Re: Solr Custom Filter Factory - How to pass parameters?

2012-08-23 Thread KnightRider
Can someone please point to some samples on how to implement custom SolrEventListeners? Whats the default behavior of Solr when no SolrEventListeners are configured in solrconfig.xml. I am trying to understand how does custom listener fit in with default listeners (if there are any) Thanks

Re: Solr Custom Filter Factory - How to pass parameters?

2012-08-22 Thread Erick Erickson
I'm reaching a bit here, haven't implemented one myself, but... It seems like you're just dealing with some shared memory. So say your filter recorded all the stuff you want to put into the DB. When you put stuff in to the shared memory, you probably have to figure out when you should commit the

Re: Solr Custom Filter Factory - How to pass parameters?

2012-08-22 Thread ksu wildcats
Thanks Erick. I tried to do it all at the filter but the problem i am running into doing it at the filter is intercepting the final commit calls or in other words I am unable to figure out when the final commit should happen such that I don't miss out any data. One option I tried is to increase

RE: Solr Custom Filter Factory - How to pass parameters?

2012-08-21 Thread ksu wildcats
Thanks for your help. I was able to get it working with using the parameters from filedtype definition in config files. I am now stuck on next step. Can you please tell if there is a way to identify/intercept last token that gets added to index (across all documents) ? Here is my scenario 1) I

Re: Solr Custom Filter Factory - How to pass parameters?

2012-08-21 Thread Jack Krupansky
, 2012 2:02 AM To: solr-user@lucene.apache.org Subject: RE: Solr Custom Filter Factory - How to pass parameters? Thanks for your help. I was able to get it working with using the parameters from filedtype definition in config files. I am now stuck on next step. Can you please tell if there is a way

Re: Solr Custom Filter Factory - How to pass parameters?

2012-08-21 Thread ksu wildcats
Jack Reading through the documentation for UpdateRequestProcessor my understanding is that its good for handling processing of documents before analysis. Is it true that processAdd (where we can have custom logic) is invoked once per document and is invoked before any of the analyzers gets

Re: Solr Custom Filter Factory - How to pass parameters?

2012-08-20 Thread Jack Krupansky
First, the obvious question: What kind of information? Be specific. Second, you can pass parameters to your filter factory in your field type definitions. You could have separate schemas or separate field types for the different indexes. Is there anything this doesn't cover? You can also

Re: Solr Custom Filter Factory - How to pass parameters?

2012-08-20 Thread ksu wildcats
Thanks Jack. The information I want to pass is the databasename into which the analyzed data needs to be inserted. As i was saying earlier, the set up we have is 1) we use embedded solr server with multi cores - embedded into our webapp 2) support one index for each client - each client has a

RE: Solr Custom Filter Factory - How to pass parameters?

2012-08-20 Thread Markus Jelsma
-Original message- From:ksu wildcats ksu.wildc...@gmail.com Sent: Mon 20-Aug-2012 20:28 To: solr-user@lucene.apache.org Subject: Re: Solr Custom Filter Factory - How to pass parameters? Thanks Jack. The information I want to pass is the databasename into which the analyzed

RE: Solr Custom Filter Factory - How to pass parameters?

2012-08-20 Thread ksu wildcats
Thanks Markus. Links are helpful. I will give it a try and see if that solves my problem. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Custom-Filter-Factory-How-to-pass-parameters-tp4002217p4002248.html Sent from the Solr - User mailing list archive at Nabble.com.