Avoiding duplicates in autocomplete searches

I'm using ngrams on an '.autocomplete' field but my auto complete search is
bringing back duplicates. I can remove the duplicates after the search but
is there a way to execute a search so that it does not return the
duplicates?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

You can use TermsFacet but only on small number of values (memory concern).
Don't use it on ngrams!

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 22 juil. 2013 à 08:35, dan dan.tuffery@gmail.com a écrit :

I'm using ngrams on an '.autocomplete' field but my auto complete search is bringing back duplicates. I can remove the duplicates after the search but is there a way to execute a search so that it does not return the duplicates?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.