Commitwithin

2012-04-04 Thread Jens Ellenberg

Hello,

I am trying to use commitwithin in Java but there seams to be no commit 
at all with this option.


1. Example Code:

UpdateRequest request = new UpdateRequest();
request.deleteByQuery(fild:value);
request.setCommitWithin(1);
System.out.println(request.getCommitWithin());
server.request(request);

2. Example Code:

server.add(aSolrDocument,1);

Only after an explicit commit ( server.commit(); ) are the changes 
available.


I have deleted the autocommit option in the solrconfig. Has anyone an 
idea?


Greetings
Jens

--
Jens Ellenberg,
Master of Science (Informatik)

Tel   +49 (40) 39 99 76 45
Fax   +49 (40) 39 99 76 40
EMail ellenb...@silpion.de

Silpion IT-Solutions GmbH
Firmensitz: Brandshofer Deich 48, 20539 Hamburg
Registergericht: Amtsgericht Hamburg, HRB 78585
Geschäftsführer: Patrick Postel



Re: Response status

2012-01-31 Thread Jens Ellenberg
Hello,

Is there a reference to this status-codes?


Erik Hatcher wrote
 
 It means the request was successful.  If the status is non-zero (err,  
 1) then there was an error of some sort.
 
   Erik
 
 On Dec 4, 2008, at 9:32 AM, Robert Young wrote:
 
 In the standard response format, what does the status mean? It  
 always seems
 to be 0.

 Thanks
 Rob
 


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Response-status-tp490876p3702747.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Response status

2012-01-31 Thread Jens Ellenberg
Thanks,

this helps a lot

greetings
Jens

Am 31.01.2012 13:53, schrieb Erik Hatcher-4 [via Lucene]:

 On Jan 31, 2012, at 04:42 , Jens Ellenberg wrote:

  Hello,
 
  Is there a reference to this status-codes?

 Just the source code.  SolrCore#setResponseHeaderValues, which 
 predominately uses the codes specified in SolrException:

 BAD_REQUEST( 400 ),
 UNAUTHORIZED( 401 ),  // not currently used
 FORBIDDEN( 403 ),
 NOT_FOUND( 404 ),
 SERVER_ERROR( 500 ),
 SERVICE_UNAVAILABLE( 503 ),
 UNKNOWN(0);

 Erik


 
 
  Erik Hatcher wrote
 
  It means the request was successful.  If the status is non-zero (err,
  1) then there was an error of some sort.
 
  Erik
 
  On Dec 4, 2008, at 9:32 AM, Robert Young wrote:
 
  In the standard response format, what does the status mean? It
  always seems
  to be 0.
 
  Thanks
  Rob
 
 
 
  --
  View this message in context: 
 http://lucene.472066.n3.nabble.com/Response-status-tp490876p3702747.html
  Sent from the Solr - User mailing list archive at Nabble.com.



 
 If you reply to this email, your message will be added to the 
 discussion below:
 http://lucene.472066.n3.nabble.com/Response-status-tp490876p3703172.html
 To unsubscribe from Response status, click here 
 http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=490876code=ZWxsZW5iZXJnQHNpbHBpb24uZGV8NDkwODc2fDc0MjIyMzQ1Nw==.
 NAML 
 http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
  




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Response-status-tp490876p3703708.html
Sent from the Solr - User mailing list archive at Nabble.com.