solr - Exception in adding document in SolrJ -


i building java application using solrj. when add document single record, program runs fine. when use collection, @ server.add(docs) following exception: " exception in thread "main" org.apache.solr.common.solrexception: bad request

bad request

request: http://localhost:8080/solr/update?wt=javabin&version=1 " when debug program, see documents added collection docs object.

let me know clarify something.

regards,

ankit agarwal

check schema xml , ensure dont add field not declared in schema file. check whether "id" field available every document , declared in schema.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -