Got it thank you

Regards,
Moshe


-------- Original message --------
From: Shalin Shekhar Mangar
Date:06/23/2014 21:38 (GMT+02:00)
To: solr-user@lucene.apache.org
Subject: Re: How-to get results of comparison between documents

Hi Moshe,

The CollpasingQParser will group documents on a given field. In this case,
you can group by the mobile phone's id (which is unique across all mobile
phones) and then ask Solr to return the document with the maximum revision
value. That is exactly what Ludovic's example does.


On Mon, Jun 23, 2014 at 10:16 PM, Moshe Recanati <mos...@kmslh.com> wrote:

> Hi Ludvic,
> Thanks a lot.
> I looked into this reference guide and I would like to make sure I
> understand it correctly.
> Can you mention specific example on how to use it?
> It'll help me a lot.
>
>
> Regards,
> Moshe
>
>
> -------- Original message --------
> From: lboutros
> Date:06/23/2014 19:10 (GMT+02:00)
> To: solr-user@lucene.apache.org
> Subject: Re: How-to get results of comparison between documents
>
> Hi Moshe,
>
> If I understand correctly your needs, I think you want to use the
> CollapsingQParser post filter:
>
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=40509582
>
> I think that, basically, adding this filter to your query should solve your
> problem:
>
> fq={!collapse field=document_id_field max=revision_field}
>
> Ludovic.
>
>
>
> -----
> Jouve
> France.
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/How-to-get-results-of-comparison-between-documents-tp4143389p4143458.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



--
Regards,
Shalin Shekhar Mangar.

Reply via email to