Realizing a prefix search across multiple tokens splitted by whitespace

Although this is a topic which is discussed a lot on the internet I'm stuck
with accomplishing one thing and I tried a lot unto this point.

I want to have a prefix search on multiple tokens in a string (splitted by

So, I've got the field Name with the content "Hamburg Altona" - now I want
to search for "Ham Alt" and get all documents where the Name field contains
a string starting with "Ham" and a string starting with "Alt".

I tried several analyzing and tokenizing settings (nGram, edgeNGram,
lowercase, standard etc. pp.) and several queries (phrase_prefix, prefix),
but I'm not able to get the wanted behavior as described above.

If further information is required just ask.

I really appreciate any pointers.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit