lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <>
Subject Re: Find duplicates
Date Tue, 02 Dec 2014 16:14:39 GMT
And if I am correct, enabling docValues will do this kind of grouping
as part of the indexing with docValues data structure (per segment).
So, all one has to do is to get it back (through faceting).

Personal: and @arafalov
Solr resources and newsletter: and @solrstart
Solr popularizers community:

On 2 December 2014 at 11:02, Erik Hatcher <> wrote:
> Sort of… if you indexed the full value of the field (and you’re looking for truly
exact matches) as a string field type you could facet on that field with facet.mincount=2
and the facets returned would be the ones with duplicate values.  You’d have to drill down
on each of the facets returned to find the actual docs.
>     Erik
>> On Dec 2, 2014, at 10:57 AM, Peter Kirk <> wrote:
>> Hi
>> Is it possible to formulate a Solr query which finds all documents which have the
same value in a particular field?
>> Note, I don't know what the value is, I just want to find all documents with duplicate
>> For example, I have 5 documents:
>> Doc1: field Name = Peter
>> Doc2: field Name = Jack
>> Doc3: field Name = Peter
>> Doc4: field Name = Paul
>> Doc5: field Name = Jack
>> If I executed the query, it would find documents Doc1 and Doc3 (Peter is the same),
and Doc2 and Doc5 (Jack is the same).
>> Thanks,
>> Peter

View raw message