-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix DenseVectorFieldIndexTypeUpdateIT test #132176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix DenseVectorFieldIndexTypeUpdateIT test #132176
Conversation
| assertNoFailuresAndResponse(client().prepareSearch(INDEX_NAME).setSize(expectedDocs + 10), response -> { | ||
|
|
||
| // Count query | ||
| assertNoFailuresAndResponse(client().prepareSearch(INDEX_NAME).setSize(0).setTrackTotalHits(true).setSize(expectedDocs), response -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a count query as well as a knn query to ensure results are consistent
| private void indexDoc(int id) throws ExecutionException, InterruptedException { | ||
| Float[] vector = randomArray(dimensions, dimensions, Float[]::new, () -> randomFloatBetween(-1, 1, true)); | ||
| IndexRequest req = prepareIndex(INDEX_NAME).setSource(VECTOR_FIELD, vector).setId(Integer.toString(id)).request(); | ||
| client().index(req); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm insane number of issues created ha
…r-update-tests # Conflicts: # muted-tests.yml
…ate-tests' into tests/fix-dense-vector-update-tests # Conflicts: # muted-tests.yml
Docs indexation didn't wait for the index request to return, which caused doc count to fail in some instances.
Closes quite a few issues, as this is a parameterized test that checks all combinations of index upgrades.
Closes #132165
Closes #132164
Closes #132152
Closes #132151
Closes #132150
Closes #132149
Closes #132141
Closes #132140
Closes #132134
Closes #132133
Closes #132132
Closes #132130
Closes #132127
Closes #132126
Closes #132125
Closes #132124
Closes #132123
Closes #132122
Closes #132121
Closes #132120
Closes #132119
Closes #132117
Closes #132116
Closes #132115
Closes #132113
Closes #132112
Closes #132234
Closes #132228
Closes #132222
Closes #132221
Closes #132220
Closes #132219
Closes #132214
Closes #132213
Closes #132211
Closes #132189
Closes #132188