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


Traceback (most recent call last):
 File "", line 47, in 
 File "", line 41, in main
 s.add(items, commit=True)
 File "/usr/lib/python2.6/site-packages/", line 779, in add
 return self._update(m, commit=commit, waitFlush=waitFlush, waitSearcher=waitSearcher)
 File "/usr/lib/python2.6/site-packages/", 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/", line 321, in _send_request
 raise SolrError(error_message)
 pysolr.SolrError: [Reason: None]
4008ERROR: [doc=12] unknown field 'subcat'400



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 *