gerrit/gerrit-solr
Dave Borowitz 569f2516db Use Lucene's QueryBuilder for building full-text queries
FuzzyQuery was a mistake; it uses edit distance to find terms in the
index close to the provided search term. This produces bizarre results
for queries like "message:1234".

Instead, use Lucene's QueryBuilder with an analyzer to convert a
full-text search word/phrase into a phrase query.

Add some tests for full-text matching behavior on numbers, which
should hopefully not be too dependent on specific Lucene behavior.
Coincidentally, a copy-paste error in the byMessageExact test
prevented this poor behavior from showing up in tests sooner.

Change-Id: I384f74f1455d0433433a27f880204ac8ecbf93da
2013-12-30 08:50:25 -08:00
..
src/main/java/com/google/gerrit/solr Use Lucene's QueryBuilder for building full-text queries 2013-12-30 08:50:25 -08:00
BUCK Use Lucene's QueryBuilder for building full-text queries 2013-12-30 08:50:25 -08:00