Search and return like substring

Want to search elasticsearch for foobar and return and docs with substring foo. Any ideas on how to do this? I can search for foo and return foobar. But I really need to be able to search full string and return any _doc with partial substring.

Have a look at ngram based analyzers. That might help.

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