HomePhabricator

Don't blow up on single position phrases

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

(cherry picked from commit Ibf5bd076a4d5b2d4665d8adc2477c17f6833dacf)

Change-Id: I5a6b85eb7b5b2ab5ddfeda508159f5fd7f50fcfe