[ 
https://issues.apache.org/jira/browse/SOLR-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526283
 ] 

Ryan McKinley commented on SOLR-352:
------------------------------------

I just added some docs to:
  http://wiki.apache.org/solr/Solrj

Essentially, you can work with the UpdateRequest directly and use options that 
are not available in the  SolrServer interface.

  SolrServer server = ...
    
  UpdateRequest req = new UpdateRequest(); 
  req.setAction( UpdateRequest.ACTION.COMMIT, false, false );
  req.add( docs );
  UpdateResponse rsp = req.process( server );




> UpdateRequest is duplicating commit and optimize requests
> ---------------------------------------------------------
>
>                 Key: SOLR-352
>                 URL: https://issues.apache.org/jira/browse/SOLR-352
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.3
>            Reporter: Bill Au
>            Assignee: Bill Au
>            Priority: Minor
>         Attachments: solr-352.patch, solr-352.patch
>
>
> UpdateRequest current sets both query args and a update XML message in the 
> POST body.  This causes Solr to do two commit/optimize for each 
> commit/optimize request sent in by SolrJ.  I will be attaching a patch to 
> remove the commit/optimize query args.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to