Skip to content

Conversation

@polyfractal
Copy link
Contributor

Terms had unmapped tests (and unmapped + missing) but not missing on a mapped field, or scripting.

I noticed the terms test uses indexSearcher.search() directly instead of going through the test classes searchAndReduce(). I started to convert them but it turned into a large project, and wanted these tests sooner than that. So I slapped a TODO on the top and will revisit the searchAndReduce issue later.

@polyfractal polyfractal added >test Issues or PRs that are addressing/adding tests :Analytics/Aggregations Aggregations labels Mar 24, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Aggregations)

Copy link
Contributor

@andyb-elastic andyb-elastic left a comment

Choose a reason for hiding this comment

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

LGTM

Do we want to move all the aggregator tests to using AggregatorTestCase#search / #searchAndReduce? All the places where I've come across IndexSearcher#search they were able to be swapped out I think

@polyfractal
Copy link
Contributor Author

Finally got back to this 😅 Fixed the scripting test, and went ahead and modernized by using searchAndReduce(). Still a lot of not-so-great conventions in the test but this should help get it more in line.

@rjernst rjernst added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label May 4, 2020
@elasticsearchmachine elasticsearchmachine changed the base branch from master to main July 22, 2022 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Aggregations Aggregations Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants