ZF-2598: regex for wildcard query (single-placeholder) is wrong
If I search for "lebe?" it correctly matches "leber", "leben" etc. But if I search for "le?en" it doesn't match anything. I dumped the used pattern and it seems there is a bug. The pattern generated for "lebe?" is "/^lebe.$/u" which is correct but for "le?en" the generated pattern is "/^.$/u" which is obviously plain wrong. I didn't track it further but my guess would be that the problem is in the QueryParser. It seems to work only if the placeholder is at the start or end of the term but fails if it's in between.