Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Solr Numfound different compared to dataimport

Solr Numfound different compared to dataimport

New Contributor

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

2 REPLIES 2

Re: Solr Numfound different compared to dataimport

Super Collaborator
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

Re: Solr Numfound different compared to dataimport

New Contributor

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