You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Turbo <fd...@ticino.com> on 2010/08/06 16:05:33 UTC

Multiple updatehandlers in solr, different autocommit settings

Hi all,


I'm trying to set different autocommit settings to 2 separate request
handlers...I would like a requesthandler to use an update handler and a
second requesthandler use another update handler...

can I have more than one update handler in the same solrconfig?
how can I configure a requesthandler to a specific updatehandler?


rgds
Turbo
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Multiple-updatehandlers-in-solr-different-autocommit-settings-tp1030053p1030053.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multiple updatehandlers in solr, different autocommit settings

Posted by Chris Hostetter <ho...@fucit.org>.
: 
: I'm trying to set different autocommit settings to 2 separate request
: handlers...I would like a requesthandler to use an update handler and a
: second requesthandler use another update handler...
: 
: can I have more than one update handler in the same solrconfig?
: how can I configure a requesthandler to a specific updatehandler?

I don't beleive it's possible to have more then one <updateHandler/> in 
your solrconfig.xml.

The UpdateHandler is responsible for managing the IndexWRiter, and only 
one of those can be open against a Lucene index at a time (i'm fairly 
certian)

One thing that's not clear from your question is wehter you realize that 
there are no "transactions" in Solr ... the notion of a "commit" applies 
to all documents thta have been added regardless of what RequestHandler 
they came from -- so having independent autoCommit settings for differnet 
RequestHandler instances would really give you anything ... when either 
handler triggers a commit, every document that has been added up until 
that point will be committed.

-Hoss