I'm using the new AnalyzingSuggester (my code is available on
http://pastebin.com/tN9yXHB0)
and I got the synonyms "whisky,whiskey" (they are bi-directional)

So whether the user searches for whiskey or whisky, I want to retrieve all
documents that have any of them.

However, for autosuggest, I would like to prefer (better said: only show!)
"whisky"
e.g. I got the document "Whiskey Bottle"
but autosuggest for "whi" should return "Whisky Bottle"

The only way I'd think of is replacing "Whiskey" with "Whisky" on feeding,
but that would also mean an additional field in solr (since I do want to
keep "Whiskey" in the original field)

Is there any way to do some kind of "synonym replacement" on-the-fly for
these suggestions?
Has anyone ever done that or has an idea how to do that?

Cheers.
Sebastian

Reply via email to