Skip to content

Commit

Permalink
Add bad request test for not including doc _index in previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Aug 29, 2023
1 parent d2b38a6 commit cdc6268
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,22 @@ setup:
- match: { hits.hits.2._index: "test2" }
- match: { hits.hits.3._id: "b" }

---
"Test pinned query with docs and no index fail in previous versions":
- skip:
version: "8.10.99 - "
reason: "'_index' was made optional in 8.11, this test is for explicit failure tests"
- do:
catch: bad_request
search:
index: test1,test2
body:
query:
pinned:
docs:
- { _id: a }
- { _id: c, _index: test2 }
organic:
match:
title:
query: "title"

0 comments on commit cdc6268

Please sign in to comment.