Skip to content

OAK-11775: improve is null queries for elasticsearch indexes#2346

Merged
fabriziofortino merged 9 commits intoapache:trunkfrom
fabriziofortino:OAK-11775
Jun 24, 2025
Merged

OAK-11775: improve is null queries for elasticsearch indexes#2346
fabriziofortino merged 9 commits intoapache:trunkfrom
fabriziofortino:OAK-11775

Conversation

@fabriziofortino
Copy link
Contributor

No description provided.

@fabriziofortino fabriziofortino changed the title OAK-11775: improve is null queries OAK-11775: improve is null queries for elasticsearch indexes Jun 20, 2025
…gins/index/elastic/query/ElasticRequestHandler.java


fix typo

Co-authored-by: Thomas Mueller <thomas.tom.mueller@gmail.com>
// check if the default mapping is >= 1.5.0
if (ElasticIndexDefinition.MAPPING_VERSION != null &&
ElasticIndexDefinition.MAPPING_VERSION.compareTo(new ElasticSemVer(1, 5, 0)) >= 0) {
LOG.error("Backward compatibility for null check is not supported anymore. Query results may be incorrect. " +
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should decrease logging these on each query execution., may be once every 100/1000 queries.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about that but I decided to not add this complexity for the following reasons:

  • this message is not printed for every query, only the once using is null (which shouldn't be that common)
  • we have a way to get rid of these logs: reindexing is required and it will improve both response time and resource usage

@fabriziofortino fabriziofortino merged commit a33c43d into apache:trunk Jun 24, 2025
1 of 3 checks passed
@fabriziofortino fabriziofortino deleted the OAK-11775 branch June 24, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants