Reply
New Contributor
Posts: 2
Registered: ‎03-21-2019

Solr Numfound different compared to dataimport

[ Edited ]

Hello Everyone,

 

Kindly help me with this, I have a problem related to indexing. I have a current setup of 1 shard and 1 replica.

 

But as soon as i create a 1 shard 3 replica and index the documents the fetched records are shown as 500k as seen in the image but the numfound shows 74k. (replica 1, 2, 3 has a count of 74k individually)

 

Is there any problem when i create more than one replica i am not getting the correct count whereas it is shown the records fetched is 500k.

 

The same problem doesn't happen when i create 1 replica.

 

Kindly help.Screen Shot 2019-03-21 at 3.14.40 PM.pngdataimportScreen Shot 2019-03-21 at 3.23.03 PM.pngquery

Cloudera Employee
Posts: 266
Registered: ‎01-09-2014

Re: Solr Numfound different compared to dataimport

Try to run your query against each replica, and add the "distrib=false" to the custom parameters. Are you seeing the same numDocs on each replica in the shard?

-pd
Highlighted
New Contributor
Posts: 2
Registered: ‎03-21-2019

Re: Solr Numfound different compared to dataimport

[ Edited ]

Hello pdvorak, thank you for the reply & Yes there are same number of documents in all the shards