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.