Oh yes!! :) I tried the Faceting on the UUID field. All the uuids have count = 2 ==> which probably explains why I am getting Double counting in Facet result.
So does this mean, when I do a facet query on facet.field= loginUserName, Solr does not look at the UUID? And the unique field (UUID in this case) is considered only while Search Queries? On Sun, Jan 25, 2015 at 3:15 AM, Toke Eskildsen <t...@statsbiblioteket.dk> wrote: > harish singh [harish.sing...@gmail.com] wrote: > > As you see, the result is showing Facet-Count for "loginUserName= harry" > is > > 36. > > > > So when I do a Solr Search for logs, I should get 36 logs. > > But I am getting 18. > > This happening for all the searches now. > > If you have recently added or changed uniqueKey and if your index has > multiple documents with the same key, that would explain the behaviour you > describe. If that is so, I recommend you delete the index and rebuild it > from scratch. > > - Toke Eskildsen >