You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jamie Johnson <je...@gmail.com> on 2011/06/09 21:42:43 UTC
Unique Results from Edgy Text
I am using the guide found here (
http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/)
to build an autocomplete search capability but in my data set I have some
documents which have the same value for the field that is being returned, so
for instance I have the following being returned:
A test document to see how this works
A test document to see how this works
A test document to see how this works
A test document to see how this works
A test document to see how this works
I'm wondering if there is something I can specify that I want only unique
results to come back. I know I can do some post processing of the results
to make sure that only unique items come back, but I was hoping there was
something that could be done to the query. Any thoughts?
Re: Unique Results from Edgy Text
Posted by Ahmet Arslan <io...@yahoo.com>.
--- On Thu, 6/9/11, Jamie Johnson <je...@gmail.com> wrote:
> From: Jamie Johnson <je...@gmail.com>
> Subject: Unique Results from Edgy Text
> To: solr-user@lucene.apache.org
> Date: Thursday, June 9, 2011, 10:42 PM
> I am using the guide found here (
> http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/)
> to build an autocomplete search capability but in my data
> set I have some
> documents which have the same value for the field that is
> being returned, so
> for instance I have the following being returned:
>
> A test document to see how this works
> A test document to see how this works
> A test document to see how this works
> A test document to see how this works
> A test document to see how this works
>
> I'm wondering if there is something I can specify that I
> want only unique
> results to come back. I know I can do some post
> processing of the results
> to make sure that only unique items come back, but I was
> hoping there was
> something that could be done to the query. Any
> thoughts?
May be http://wiki.apache.org/solr/Deduplication ?
Or may be somehow you can populate your database table with unique queries (outside of the solr) along with their couts.