Skip to content

Commit

Permalink
Update DlsFlsFilterLeafReader to reflect Apache Lucene 10 APIs changes
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta committed Feb 23, 2025
1 parent b20a09b commit 0f0a5bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@

class DlsFlsFilterLeafReader extends SequentialStoredFieldsLeafReader {

private static final String KEYWORD = ".keyword";
private final FieldInfos flsFieldInfos;
private final IndexService indexService;
private final ThreadContext threadContext;
Expand Down Expand Up @@ -822,6 +821,11 @@ public void seekExact(long ord) throws IOException {
public long ord() throws IOException {
throw new UnsupportedOperationException();
}

@Override
public IOBooleanSupplier prepareSeekExact(BytesRef text) throws IOException {
return isAllowed(text) ? in.prepareSeekExact(text) : () -> false;
}
}

private final class FilteredTerms extends FilterTerms {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ protected void populateData(Client tc) {
"@timestamp",
"type=date",
"host",
"type=text,doc_values=false,norms=true",
"type=text,norms=false",
"response",
"type=text,doc_values=false,norms=true",
"type=text,norms=false",
"non-existing",
"type=text,doc_values=false,norms=true"
"type=text,norms=false"
)
)
.actionGet();
Expand Down

0 comments on commit 0f0a5bf

Please sign in to comment.