Inverted full text search

Hi,

When it comes to full text search, use case we usually mean is: there are documents with more or less long text (articles) and we want to find certain comparatively short phrase matches inside those articles.

Is it possible to do opposite? Let's say I have index of cities and city name is searchable text field.
By giving input search string like "I would like to spend vacation in Paris or London" I would like ES to return 2 documents in result, for Paris and London. Is it possible to compose such query? How efficient it will be?

Thanks.

Have a look at the percolator functionality.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.