Skip to content

Commit c28e01e

Browse files
authored
Adding forbidden API check for buggy range query behavior (elastic#128671) (elastic#128765)
This adds the buggy functions to forbidden API check. Will remove once Lucene is updated. Related elastic#128671
1 parent bbd65c6 commit c28e01e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build-tools-internal/src/main/resources/forbidden/es-all-signatures.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,11 @@ org.apache.logging.log4j.message.ParameterizedMessage#<init>(java.lang.String, j
6161

6262
@defaultMessage Use WriteLoadForecaster#getForecastedWriteLoad instead
6363
org.elasticsearch.cluster.metadata.IndexMetadata#getForecastedWriteLoad()
64+
65+
# This is a temporary patch as there is a low level Lucene bug in certain scenarios
66+
# this should be fixed in the new Lucene release 10.3+
67+
org.apache.lucene.document.LongField#newExactQuery(java.lang.String, long) @ Use org.elasticsearch.lucene.document.NumericField#newExactLongQuery(java.lang.String, long) instead.
68+
org.apache.lucene.document.LongField#newRangeQuery(java.lang.String, long, long) @ Use org.elasticsearch.lucene.document.NumericField#newRangeLongQuery(java.lang.String, long, long) instead.
69+
org.apache.lucene.document.IntField#newExactQuery(java.lang.String, int) @ Use org.elasticsearch.lucene.document.NumericField#newExactIntQuery(java.lang.String, int) instead.
70+
org.apache.lucene.document.IntField#newRangeQuery(java.lang.String, int, int) @ Use org.elasticsearch.lucene.document.NumericField#newRangeIntQuery(java.lang.String, int, int) instead.
71+
org.apache.lucene.search.IndexSortSortedNumericDocValuesRangeQuery @ use org.elasticsearch.lucene.search.XIndexSortSortedNumericDocValuesRangeQuery instead.

0 commit comments

Comments
 (0)