HomePhabricator

Don't blow up on single position phrases

This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Don't blow up on single position phrases

Lucene will sometimes make single position phrase queries in the presence
of things like unicode normalization and stop words. It can happen and its
rude to throw back ArrayIndexOutOfBoundsExceptions when it does. Instead
the offender tells the calling class that it doesn't support phrase queries
like that and we fix the callers never to emit single position phrase
queries. Done deal.

Closes T95021

Change-Id: Ibf5bd076a4d5b2d4665d8adc2477c17f6833dacf