The only way to have results deduplicated seems to be using the same output for 
the same entry.

>From the manual 
<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html#indexing>
:
output - The string to return, if a suggestion matches. This is very useful 
to normalize outputs (i.e. have them always in the format artist - 
songname). This is optional. Note: *The result is de-duplicated if several 
documents have the same output*, i.e. only one is returned as part of the 
suggest result.

Michele

On Friday, 5 December 2014 15:42:54 UTC+1, Michael Irwin wrote:
>
> I'm using the Completion suggester with v1.4.1, and I'm noticing an 
> issue regarding case sensitivity. For example, I have this mapping: 
>
>
> { 
>   "mappings": { 
>     "artist": { 
>       "properties": { 
>         "suggest": { 
>           "type": "completion", 
>           "payloads": true 
>         }, 
>         "name": { 
>           "type": "string" 
>         } 
>       } 
>     } 
>   } 
> } 
>
> I add a document with artist.name = "foo bar" and add another document 
> but with the name in ALL CAPS (e.g. "FOO BAR"). I do a completion query for 
> "foo", I get back two separate completions, one for each different case. 
> How can I ensure only one completion is returned regardless of case? 
>
> Thanks! 
> -- 
> Mike 
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/e9d5292f-d948-4b9b-a0dd-a92aa804150e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to