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

Hoss Man commented on SOLR-7404:
--------------------------------


Steps to reproduct...
{noformat}
$ bin/solr -e cloud -noprompt
...
Uploading 
/home/hossman/lucene/lucene-5.1.0_tag/solr/server/solr/configsets/data_driven_schema_configs/conf
 for config gettingstarted to ZooKeeper at localhost:9983

Creating new collection 'gettingstarted' using command:
http://127.0.1.1:8983/solr/admin/collections?action=CREATE&name=gettingstarted&numShards=2&replicationFactor=2&maxShardsPerNode=2&collection.configName=gettingstarted
...
$ bin/solr create -c techproducts -d sample_techproducts_configs
Connecting to ZooKeeper at localhost:9983
Uploading 
/home/hossman/lucene/lucene-5.1.0_tag/solr/server/solr/configsets/sample_techproducts_configs/conf
 for config techproducts to ZooKeeper at localhost:9983

Creating new collection 'techproducts' using command:
http://127.0.1.1:8983/solr/admin/collections?action=CREATE&name=techproducts&numShards=1&replicationFactor=1&maxShardsPerNode=1&collection.configName=techproducts
...
$ curl -X POST -H "Content-Type: application/csv" --data-binary @books.csv 
"http://localhost:8983/solr/gettingstarted/update?commit=true&versions=true";
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int 
name="QTime">3010</int></lst><lst name="adds"><long 
name="0553573403">0</long><long name="0553579908">0</long><long 
name="055357342X">0</long><long name="0553293354">0</long><long 
name="0812521390">0</long><long name="0812550706">0</long><long 
name="0441385532">0</long><long name="0380014300">0</long><long 
name="0805080481">0</long><long name="080508049X">0</long></lst>
</response>
$ curl -X POST -H "Content-Type: application/csv" --data-binary @books.csv 
"http://localhost:8983/solr/techproducts/update?commit=true&versions=true";
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int 
name="QTime">401</int></lst><lst name="adds"><long 
name="0553573403">1498553671595589632</long><long 
name="0553579908">1498553671603978240</long><long 
name="055357342X">1498553671606075392</long><long 
name="0553293354">1498553671607123968</long><long 
name="0812521390">1498553671608172544</long><long 
name="0812550706">1498553671609221120</long><long 
name="0441385532">1498553671609221121</long><long 
name="0380014300">1498553671610269696</long><long 
name="0805080481">1498553671611318272</long><long 
name="080508049X">1498553671612366848</long></lst>
</response>
{noformat}

> versions=true not working with data_driven_schema_configs ?
> -----------------------------------------------------------
>
>                 Key: SOLR-7404
>                 URL: https://issues.apache.org/jira/browse/SOLR-7404
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>
> i haven't dug into this yet, but i've confirmed (at least with Solr 5.1) that 
> something about using the data_driven_schema_configs prevents the 
> {{versions=true}} update request param from working -- every doc just returns 
> "0" as the new version.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to