lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <>
Subject Re: Exclude documents having same data in two fields
Date Fri, 09 Oct 2015 15:35:41 GMT

You can invoke Terms Component for the filed M, let it returns terms:
then you invoke it for field T let it return {b,c,f,e},
then you intersect both lists (it's quite romantic if they are kept
ordered), you've got {c,f}
and then you applies filter:
fq=-((+M:c +T:c) (+M:f +T:f))

On Thu, Oct 8, 2015 at 8:29 AM, Aman Tandon <> wrote:

> Hi,
> Is there a way in solr to remove all those documents from the search
> results in which two of the fields, *mapping* and  *title* is the exactly
> same.
> With Regards
> Aman Tandon

Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message