I would like to use phrase suggester not on an entire field, but only for a certain values of a field. I have a field, called city, that cointans a name of a city. I would like that my suggester returns a suggestion in the text field, different for each value in the city field. How can I do that?
There's nothing to stop your client code taking strings from a "suggest" call on the
city field and then using those string values in a separate search on a different field (
text). Some city names obviously have multiple words e.g. "New York" so it would make sense to use a match phrase query on the text field which holds tokenized content.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.