[
https://issues.apache.org/jira/browse/SOLR-7404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497162#comment-14497162
]
Steve Rowe commented on SOLR-7404:
----------------------------------
I can reproduce the problem, and the order of POSTing (techproducts collection
first vs. gettingstarted first) doesn't seem to change the outcome.
But I don't think this a data_driven_schema_configs problem - if I create a
second data_driven_schema_configs collection named gettingstarted2 I get the
expected versions when I POST books.csv there:
{noformat}
$ bin/solr create -c gettingstarted2 -d data_driven_schema_configs
Connecting to ZooKeeper at localhost:9983
Uploading
/Users/sarowe/svn/lucene/dev/tags/lucene_solr_5_1_0/solr/server/solr/configsets/data_driven_schema_configs/conf
for config gettingstarted2 to ZooKeeper at localhost:9983
Creating new collection 'gettingstarted2' using command:
http://192.168.1.8:8983/solr/admin/collections?action=CREATE&name=gettingstarted2&numShards=1&replicationFactor=1&maxShardsPerNode=1&collection.configName=gettingstarted2
...
$ curl -X POST -H 'Content-Type: application/csv' --data-binary @books.csv
"http://localhost:8983/solr/gettingstarted2/update?commit=true&versions=true"
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">200</int></lst><lst name="adds"><long
name="0553573403">1498558623392989184</long><long
name="0553579908">1498558623510429696</long><long
name="055357342X">1498558623512526848</long><long
name="0553293354">1498558623514624000</long><long
name="0812521390">1498558623515672576</long><long
name="0812550706">1498558623517769728</long><long
name="0441385532">1498558623518818304</long><long
name="0380014300">1498558623519866880</long><long
name="0805080481">1498558623521964032</long><long
name="080508049X">1498558623524061184</long></lst>
</response>
{noformat}
Also, after running the above, POSTing books.csv to the gettingstarted
collection seems to show some versions:
{noformat}
$ 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">1099</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">1498559146793893888</long><long
name="0812550706">0</long><long
name="0441385532">1498559147007803392</long><long
name="0380014300">1498559147009900544</long><long
name="0805080481">1498559147011997696</long><long
name="080508049X">1498559147014094848</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: [email protected]
For additional commands, e-mail: [email protected]