Hi Team, I am waiting for your feedback. Any update on this issue?
On Fri, Dec 28, 2018 at 12:11 PM Shubhangi Shinde < shubhangi.shi...@iauro.com> wrote: > Hi Team, > > I am using Apache Solr. I went through the below link 'https://lucene. > apache.org/solr > /guide/7_5/transforming-and-indexing-custom-json.html#setting-json-defaults' > for transforming and indexing custom JSON and added the code in one of the > core to upload a multilevel JSON. 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 added the below code in my solrconfig.xml file. Please check, > > <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> > > > Please check the issue on stack overflow on the below link, > https://stackoverflow.com/questions/53775064/apache-solr > -error-unknown-field-src > > Please let me know if you want some more information about this. Thanks in > advance. > > -- > > *Shubhangi Shinde* > Sr. Software Engineer, iauro Systems Pvt. Ltd. > 020-64008585 | shubhangi.shi...@iauro.com | www.iauro.com > <http://goo.gl/CcgMgN> > <http://www.linkedin.com/company/iauro-systems-pvt-ltd> > <http://twitter.com/iauro> <http://www.facebook.com/iauro> > -- *Shubhangi Shinde* Sr. Software Engineer, iauro Systems Pvt. Ltd. 020-64008585 | shubhangi.shi...@iauro.com | www.iauro.com <http://goo.gl/CcgMgN> <http://www.linkedin.com/company/iauro-systems-pvt-ltd> <http://twitter.com/iauro> <http://www.facebook.com/iauro>