Fix new analysis-common yml tests
These tests are broken because I added them with the `yml` extension and didn't realize that we weren't running tests with that extension until we merged #24659. I used that extension in anticipation of #24659 but didn't verify that the tests were actually running. Ooops! Closes #24734
This commit is contained in:
parent
026e94e6d9
commit
5fc6f17121
|
@ -25,7 +25,7 @@
|
||||||
mappings:
|
mappings:
|
||||||
doc:
|
doc:
|
||||||
properties:
|
properties:
|
||||||
body:
|
text:
|
||||||
type: text
|
type: text
|
||||||
analyzer: index
|
analyzer: index
|
||||||
search_analyzer: search
|
search_analyzer: search
|
||||||
|
@ -43,9 +43,10 @@
|
||||||
body:
|
body:
|
||||||
query:
|
query:
|
||||||
match:
|
match:
|
||||||
text: fox runs
|
text:
|
||||||
|
query: fox runs
|
||||||
operator: AND
|
operator: AND
|
||||||
- match: {hits.count: 1}
|
- match: {hits.total: 1}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
index:
|
index:
|
||||||
|
@ -60,6 +61,7 @@
|
||||||
body:
|
body:
|
||||||
query:
|
query:
|
||||||
match:
|
match:
|
||||||
text: fox runs
|
text:
|
||||||
|
query: fox runs
|
||||||
operator: AND
|
operator: AND
|
||||||
- match: {hits.count: 2}
|
- match: {hits.total: 2}
|
||||||
|
|
|
@ -5,6 +5,14 @@
|
||||||
indices.create:
|
indices.create:
|
||||||
index: test
|
index: test
|
||||||
body:
|
body:
|
||||||
|
settings:
|
||||||
|
number_of_shards: 1
|
||||||
|
number_of_replicas: 1
|
||||||
|
analysis:
|
||||||
|
analyzer:
|
||||||
|
has_payloads:
|
||||||
|
tokenizer: standard
|
||||||
|
filter: [type_as_payload]
|
||||||
mappings:
|
mappings:
|
||||||
doc:
|
doc:
|
||||||
properties:
|
properties:
|
||||||
|
@ -12,14 +20,6 @@
|
||||||
type: text
|
type: text
|
||||||
term_vector: with_positions_offsets_payloads
|
term_vector: with_positions_offsets_payloads
|
||||||
analyzer: has_payloads
|
analyzer: has_payloads
|
||||||
settings:
|
|
||||||
number_of_shards: 1
|
|
||||||
number_of_replicas: 1
|
|
||||||
analysis:
|
|
||||||
analyzer:
|
|
||||||
had_payloads:
|
|
||||||
tokenizer: standard
|
|
||||||
filter: [type_as_payload]
|
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
index:
|
index:
|
||||||
|
@ -37,4 +37,4 @@
|
||||||
id: 1
|
id: 1
|
||||||
payloads: true
|
payloads: true
|
||||||
- match: {term_vectors.text.field_statistics.sum_doc_freq: 5}
|
- match: {term_vectors.text.field_statistics.sum_doc_freq: 5}
|
||||||
- match: {term_vectors.text.terms.brown.tokens.0.payload: 10}
|
- match: {term_vectors.text.terms.brown.tokens.0.payload: PEFMUEhBTlVNPg==}
|
||||||
|
|
Loading…
Reference in New Issue