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

(cherry picked from commit Ibf5bd076a4d5b2d4665d8adc2477c17f6833dacf)

Change-Id: I5a6b85eb7b5b2ab5ddfeda508159f5fd7f50fcfe

Details

Provenance
ManybubblesAuthored on Apr 24 2015, 7:58 PM
Parents
rGSHI1dd886720318: Start 1.3 branch
Branches
Unknown
Tags
Unknown
Tasks
T95021: Index out of bounds trying to highlight title/text
ChangeId
I5a6b85eb7b5b2ab5ddfeda508159f5fd7f50fcfe