Open-ended multiple word query using wildcards

Hi all,

I'm attempting to write a query that would match against multiple tokens in a query string but with the capability of wildcards on either end of the string. The way I've tried is using wildcardQuery, regExpQuery, and queryStringQuery. This seems straightforward with one token, but I have not had luck with multiple tokens. I'm looking for "string" functionality.

For example, searching for
{"phraseCount":"Three Four Five"}
could return "Two Three Four Five" and "Three Four Five Six", but not "Three Two Four Five" because the words are not in order ("Three Four Five" has to be in the exact order) or "Two Three Four" because Five is not in the string. I know elasticsearch is capable of more powerful features, but I'm wondering if this is also possible. Thanks in advance

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