fdb-record-layer icon indicating copy to clipboard operation
fdb-record-layer copied to clipboard

Transition SortedDocValuesField to BinaryPoint to support efficient deletes in Lucene

Open jleach4 opened this issue 2 years ago • 0 comments

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) {

jleach4 avatar Apr 06 '22 20:04 jleach4