Python error while indexing data in Solr – PySolr Error – 1

Error:

Traceback (most recent call last):
 File "index_data.py", line 47, in 
 main(sys.argv[1:])
 File "index_data.py", line 41, in main
 s.add(items, commit=True)
 File "/usr/lib/python2.6/site-packages/pysolr.py", line 779, in add
 return self._update(m, commit=commit, waitFlush=waitFlush, waitSearcher=waitSearcher)
 File "/usr/lib/python2.6/site-packages/pysolr.py", line 387, in _update
 return self._send_request('post', path, message, {'Content-type': 'text/xml; charset=utf-8'})
 File "/usr/lib/python2.6/site-packages/pysolr.py", line 321, in _send_request
 raise SolrError(error_message)
 pysolr.SolrError: [Reason: None]
4008ERROR: [doc=12] unknown field 'subcat'400

 

Solution:

We were having a Duplicate field, And the Schema.xml had that field as non duplicate

Leave a Reply

Your email address will not be published. Required fields are marked *