Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,94 +55,7 @@ teardown:
cluster.get_settings:
flat_settings: true

- match: {search.allow_expensive_queries: null}

### Prefix
- do:
search:
index: test
body:
query:
prefix:
text:
value: out

- match: { hits.total.value: 3 }

### Fuzzy
- do:
search:
index: test
body:
query:
fuzzy:
text:
value: outwide

- match: { hits.total.value: 3 }


### Regexp
- do:
search:
index: test
body:
query:
regexp:
text:
value: .*ou.*id.*

- match: { hits.total.value: 3 }

### Wildcard
- do:
search:
index: test
body:
query:
wildcard:
text:
value: out?ide

- match: { hits.total.value: 3 }

### Range on text
- do:
search:
index: test
body:
query:
range:
text:
gte: "theres"

- match: { hits.total.value: 2 }

### Range on keyword
- do:
search:
index: test
body:
query:
range:
text.raw:
gte : "Outside it is cold and wet"

- match: { hits.total.value: 2 }

### Nested
- do:
search:
index: test
body:
query:
nested:
path: "nested1"
query:
bool:
must: [{"match": {"nested1.foo": "bar2"}}]

- match: { hits.total.value: 1 }
- is_false: search.allow_expensive_queries

### Update setting to false
- do:
Expand Down Expand Up @@ -232,99 +145,3 @@ teardown:
query:
bool:
must: [{"match" : {"nested1.foo" : "bar2"}}]

### Revert setting to true
- do:
cluster.put_settings:
body:
transient:
search.allow_expensive_queries: "true"
flat_settings: true

- match: {transient: {search.allow_expensive_queries: "true"}}

### Prefix
- do:
search:
index: test
body:
query:
prefix:
text:
value: out

- match: { hits.total.value: 3 }

### Fuzzy
- do:
search:
index: test
body:
query:
fuzzy:
text:
value: outwide

- match: { hits.total.value: 3 }

### Regexp
- do:
search:
index: test
body:
query:
regexp:
text:
value: .*ou.*id.*

- match: { hits.total.value: 3 }

### Wildcard
- do:
search:
index: test
body:
query:
wildcard:
text:
value: out?ide

- match: { hits.total.value: 3 }

### Range on text
- do:
search:
index: test
body:
query:
range:
text:
gte: "theres"

- match: { hits.total.value: 2 }

### Range on keyword
- do:
search:
index: test
body:
query:
range:
text.raw:
gte: "Outside it is cold and wet"

- match: { hits.total.value: 2 }

### Nested
- do:
search:
index: test
body:
query:
nested:
path: "nested1"
query:
bool:
must: [{"match": {"nested1.foo": "bar2"}}]

- match: { hits.total.value: 1 }