fdb-record-layer
fdb-record-layer copied to clipboard
Transition SortedDocValuesField to BinaryPoint to support efficient deletes in Lucene
Binary Points have been optimized for deletes in the new versions of Lucene.
From the javadoc…
/**
- Create a query for matching an exact {@link BytesRef} value.
-
NOTE: Such queries cannot efficiently advance to the next match,
- which makes them slow if they are not ANDed with a selective query. As a
- consequence, they are best used wrapped in an {@link IndexOrDocValuesQuery},
- alongside a range query that executes on points, such as
- {@link BinaryPoint#newExactQuery}. */ public static Query newSlowExactQuery(String field, BytesRef value) {