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

Bill Au commented on SOLR-352:
------------------------------

Thanks Ryan.  I got it to work but I have to add

req.setOverwrite(true);

Otherwise, a got an exception from Solr:

org.apache.solr.common.SolrException: unsupported param 
combo:add:,allowDups=false,overwritePending=false,overwriteCommitted=false

unsupported param 
combo:add:,allowDups=false,overwritePending=false,overwriteCommitted=false

request: 
http://cn-ewr1-dev40-pi2.cnet.com:7905/solr/update?commit=true&waitFlush=false&waitSearcher=false&wt=xml&version=2.2

So it looks like the combination of default values of allowDups, 
overwriteCommitted, and overwritePending (all false) in UpdateRequest is not 
supported by Solr.  Should we change the default to something that is supported 
(setting overwirte to true)?  I can open a separate bug and take care of that.

> 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