Skip to content

Commit 3f23211

Browse files
committed
Add test
1 parent 01099bf commit 3f23211

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
setup:
2+
- do:
3+
bulk:
4+
refresh: true
5+
index: test-index1
6+
body:
7+
- index:
8+
_id: foo
9+
- { "text": "foo - pinned doc for foo" }
10+
11+
---
12+
"query rules retriever when the .query-rules system index is missing":
13+
- skip:
14+
features: [ headers ]
15+
- do:
16+
headers:
17+
# Force JSON content type so that we use a parser that interprets the floating-point score as a double
18+
Content-Type: application/json
19+
search:
20+
index: test-index1
21+
body:
22+
retriever:
23+
rule:
24+
match_criteria:
25+
foo: foo
26+
bar: bar
27+
ruleset_ids:
28+
abc
29+
retriever:
30+
standard:
31+
query:
32+
query_string:
33+
query: bar
34+
explain: true
35+
catch: "missing"

0 commit comments

Comments
 (0)