Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Jun 3, 2025

These will help if the query is generated in a big conjunction. It should get optimize accordingly.

@iverase iverase requested a review from javanna June 3, 2025 16:14
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jun 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @iverase, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@iverase
Copy link
Contributor Author

iverase commented Jun 4, 2025

blocked by apache/lucene#14756

query = InetAddressPoint.newPrefixQuery("field", InetAddresses.forString(ip), 16);
assertEquals(new IndexOrDocValuesQuery(query, convertToDocValuesQuery(query)), ft.termQuery(prefix, MOCK_CONTEXT));

ft = new IpFieldMapper.IpFieldType("field", true, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For completeness, please consider adding tests that cover the doc values–only case, e.g.

ft = new IpFieldMapper.IpFieldType("field", false, true);

Copy link
Contributor

@drempapis drempapis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ty

@iverase
Copy link
Contributor Author

iverase commented Sep 12, 2025

@drempapis this is block because it changes the way queries behave, e.g some valid queries might hit a TooManyClauses exception due to the way this number is computed. @javanna Do you have any plans on how to overcome this? IMHO the way lucene is doing it is plainly wrong.

@javanna
Copy link
Member

javanna commented Sep 15, 2025

@iverase the idea would be to implement what I suggested in apache/lucene#14756 but I have not had time to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.19.0 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants