|
|
Daniel Skiles 2011-08-24, 18:07
What is the cleanest way to use the commitWithin directive with SolrJ? AbstractUpdateRequest has a setCommitWithin() method, but I don't see how to hook that into SolrServer.add(SolrInputDocument doc).
Do I need to use SolrServer.request(), or do I need to use some other method?
Thanks.
-
Re: commitWithin + SolrJ
Daniel Skiles 2011-08-24, 20:28
I ended up doing this with request.process(server) on an UpdateRequest class.
On Wed, Aug 24, 2011 at 2:07 PM, Daniel Skiles <[EMAIL PROTECTED]>wrote:
> What is the cleanest way to use the commitWithin directive with SolrJ? > AbstractUpdateRequest has a setCommitWithin() method, but I don't see how to > hook that into SolrServer.add(SolrInputDocument doc). > > Do I need to use SolrServer.request(), or do I need to use some other > method? > > Thanks. >
-
Re: commitWithin + SolrJ
Chris Hostetter 2011-08-24, 23:38
: I ended up doing this with request.process(server) on an UpdateRequest : class.
right ... if you peek under the covers of SolrServer most of it's methods are are just convinience methods for constructing a Request, setting some attributes/streams on it, and then processing it via that Server instance. -Hoss
-
Re: commitWithin + SolrJ
Jan Høydahl 2011-09-03, 21:45
Many customers have asked me how to do this, so it's not easy enough. Therefore I opened SOLR-2742 to add even more convenience :)
-- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com
On 25. aug. 2011, at 01:38, Chris Hostetter wrote:
> > : I ended up doing this with request.process(server) on an UpdateRequest > : class. > > right ... if you peek under the covers of SolrServer most of it's > methods are are just convinience methods for constructing a Request, > setting some attributes/streams on it, and then processing it via that > Server instance. > > > -Hoss
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext