You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alexandre Rafalovitch (JIRA)" <ji...@apache.org> on 2018/10/13 19:28:00 UTC

[jira] [Created] (SOLR-12864) Custom JSON parser's echo parameter does not show values

Alexandre Rafalovitch created SOLR-12864:
--------------------------------------------

             Summary: Custom JSON parser's echo parameter does not show values
                 Key: SOLR-12864
                 URL: https://issues.apache.org/jira/browse/SOLR-12864
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 7.5
            Reporter: Alexandre Rafalovitch


During parsing custom JSON, the debugging *echo* parameter does not seem to to return actually parsed values. Or possibly returns value for id, but not the rest.

Can be reproduced with:
 # bin/solr create -c splittest
 # bin/post -c splittest -params 'mapUniqueKeyOnly=true&df=text&echo=true' -out yes example/exampledocs/books.json

Results are:
{noformat}
POSTing file books.json (application/json) to [base]/json/docs
{
"responseHeader":{
"status":0,
"QTime":0},
"docs":[{
"id":"978-0641723445",
"text":[]},
{
"id":"978-1423103349",
"text":[]},
{
"id":"978-1857995879",
"text":[]},
{
"id":"978-1933988177",
"text":[]}]}
{noformat}
The documents is not created. If echo parameter is removed, the documents are created and the text field does contain values which are shown to the user. This happens whether or not the schema fields are already created or auto-created by the schemaless mode.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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