Specify the indexname in searches (#50717)

vector REST tests occasionally fail on 7.x because
we don't receive the expected response headers with deprecation warnings.
This happens as searchers were executed against all indices including
internal indices, whose shards did not produce expected warnings.

This PR ensures that searchers are executed only against expected
indices.

Closes #50716
This commit is contained in:
Mayya Sharipova 2020-01-07 17:06:52 -05:00 committed by GitHub
parent 0b7309ec9c
commit c1c0b47d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ setup:
headers:
Content-Type: application/json
search:
index: test-index
rest_total_hits_as_int: true
body:
query:
@ -76,6 +77,7 @@ setup:
headers:
Content-Type: application/json
search:
index: test-index
rest_total_hits_as_int: true
body:
query:
@ -108,6 +110,7 @@ setup:
warnings:
- The vector functions of the form function(query, doc['field']) are deprecated, and the form function(query, 'field') should be used instead. For example, cosineSimilarity(query, doc['field']) is replaced by cosineSimilarity(query, 'field').
search:
index: test-index
rest_total_hits_as_int: true
body:
query:

View File

@ -47,6 +47,7 @@ setup:
headers:
Content-Type: application/json
search:
index: test-index
rest_total_hits_as_int: true
body:
query:
@ -77,6 +78,7 @@ setup:
headers:
Content-Type: application/json
search:
index: test-index
rest_total_hits_as_int: true
body:
query: