Prefix vs Wildcard vs Regexp in terms of performance and usability

All those queries are equally bad: boolean queries with a single clause are rewritten to that clause so wrapping in a bool or filtered query has no effect.

Also prefix, wildcard and regexpqueries all work the same internally by creating an automaton that describes matching terms and intersecting it with the terms dictionary.

1 Like