[ 
https://issues.apache.org/jira/browse/SOLR-12865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cassandra Targett updated SOLR-12865:
-------------------------------------
    Component/s: documentation

> Custom JSON parser's nested documents example does not work
> -----------------------------------------------------------
>
>                 Key: SOLR-12865
>                 URL: https://issues.apache.org/jira/browse/SOLR-12865
>             Project: Solr
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 7.5
>            Reporter: Alexandre Rafalovitch
>            Priority: Major
>              Labels: json
>
> The only exam we have for indexing nested JSON using JSON parser does not 
> seem to work: 
> [https://lucene.apache.org/solr/guide/7_5/transforming-and-indexing-custom-json.html#indexing-nested-documents]
> Attempt 1, using default schemaless mode:
>  # bin/solr create -c json_basic
>  # Example command in V1 format (with core name switched to above)
>  # Indexing fails with: *"msg":"[doc=null] missing required field: id"*. My 
> guess it is because the URPs chain do not apply to inner children records
> Attempt 2, using techproducts schema configuration:
>  # bin/solr create -c json_tp -d sample_techproducts_configs
>  # Same example command with new core
>  # Indexing fails with: *"msg":"Raw data can be stored only if split=/"* (due 
> to presence of srcField in the params.json)
> Attempt 3, continuing the above example, but taking out srcField 
> configuration:
>  # Update params.json to remove srcField
>  # Same example command
>  # It indexes (but not commits)
>  # curl http://localhost:8983/solr/json_tp/update/json -v -d '\{commit:{}}
>  # The core now contains only one document with auto-generated "id" and 
> "_version_" field (because we have mapUniqueKeyOnly in params.json)
> Attempt 4, removing more keys
>  # Update params.json to remove mapUniqueKeyOnly
>  # Same example command
>  # Indexing fails with: *"msg":"Document is missing mandatory uniqueKey 
> field: id"*
> There does not seem to be way to index the nested JSON using the transformer 
> approach.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to