Ask Your Question
1

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

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-03-25 21:52:05 -0500

devpa gravatar image

There is field mapping in streamsets which automatically takes care of indexing in solr. After adding those fields in the mapping, I was able to see in solr.

edit flag offensive delete link more
0

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

Comments

I had to add these fields in field mapping. I am not sure if you are referring same thing.

devpa gravatar imagedevpa ( 2018-03-25 21:51:57 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 283 times

Last updated: Mar 25