Ask Your Question

Sending JSON data to Solr - Unable to index any fields in Solr 6.1

asked 2018-02-20 10:17:27 -0500

devpa gravatar image

Hi there,

I am trying to send data ( JSON format) from Kafka to Solr using Streamsets. In Solr admin UI, I can see the numdocs count is getting increased but when I trying to search query for a field in UI, nothing gets returned. The only data it return id and _version_.

"response":{"numFound":94,"start":0,"docs":[ { "id":"bc4ef987-54b1-40bf-a023-c131848603ea", "_version_":1592780628996128768},

I try sending the same data to elastic search and I can see the whole content. So I assume there is nothing wrong with my JSON data and If it had been wrong, Streamsets would have throw error. correct?

Solr version is 6.1. using default schema ( manages-schema). I have spent lot of time to figure it out but no luck.

I would really appreciate you can provide any pointers on this issue.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-22 12:34:54 -0500

jeff gravatar image

Either you need to include the field list parameter in your query (see here), or somehow there is a problem with the data importer. After you index some documents into Solr, do you see any errors in the Solr server logs?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-02-20 10:17:27 -0500

Seen: 15 times

Last updated: Feb 22