Thanks. I've tried ensuring the outputs are identicial (making them all lowercase), but I'm still seeing duplicates. Any other ideas?
On Friday, December 5, 2014 12:01:00 PM UTC-5, Michele Palmia wrote: > > 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/424aae64-eb03-4913-ba0f-f82e6fdcb795%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
