lucene-solr-user mailing list archives

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

You can invoke Terms Component for the filed M, let it returns terms:
{a,c,d,f}
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))
etc


On Thu, Oct 8, 2015 at 8:29 AM, Aman Tandon <amantandon.10@gmail.com> 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

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

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