[
https://issues.apache.org/jira/browse/SOLR-13085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Erick Erickson resolved SOLR-13085.
-----------------------------------
Resolution: Invalid
The JIRA issue tracker is not a support portal. Please raise this question on
the user's list at [email protected], see:
(http://lucene.apache.org/solr/community.html#mailing-lists-irc) there are a
_lot_ more people watching that list who may be able to help and you'll
probably get responses much more quickly.
If it's determined that this really is a code issue or enhancement to Solr and
not a configuration/usage problem, we can raise a new JIRA or reopen this one.
When you post to the user's list, give the _exact_ commands you're using to
"create a core". This is a red flag if you're actually using the core admin API
and trying to work in SolrCloud...
> Apache Solr : Error : unknown field _src_
> -----------------------------------------
>
> Key: SOLR-13085
> URL: https://issues.apache.org/jira/browse/SOLR-13085
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrJ, update
> Affects Versions: 7.5
> Reporter: Shubhangi Shinde
> Priority: Major
> Fix For: 7.5.1
>
> Attachments: schema.xml, solrconfig.xml
>
>
> I went through
> [this|https://lucene.apache.org/solr/guide/7_5/transforming-and-indexing-custom-json.html#setting-json-defaults]
> link and added the code in one of core to upload a multilevel JSON and it
> worked very well but when I created another core and added same then it is
> throwing the below error. I spent so much time to solve this error but no
> luck. The error is,
> {{{ "responseHeader":\{ "status":400, "QTime":93}, "error":\{ "metadata":[
> "error-class","org.apache.solr.common.SolrException",
> "root-error-class","org.apache.solr.common.SolrException"], "msg":"ERROR:
> [doc=5b62d25] unknown field '_src_'", "code":400}} }}
> I have added the below code in my solrconfig.xml file.
> {{<initParams path="/update/json/docs"> <lst name="defaults"> <!-- this
> ensures that the entire JSON doc will be stored verbatim into one field -->
> <str name="srcField">_src_</str> <!-- This means a the uniqueKeyField will be
> extracted from the fields and all fields go into the 'df' field. In this
> config df is already configured to be 'text' --> <str
> name="mapUniqueKeyOnly">true</str> <!-- The default search field where all
> the values are indexed to --> <str name="df">text</str> </lst> </initParams>
> }}
> It means my entire JSON will be stored against the key _src_.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]