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:
Nik Everett 2017-05-17 07:42:38 -04:00
parent 026e94e6d9
commit 5fc6f17121
2 changed files with 27 additions and 25 deletions

View File

@ -25,7 +25,7 @@
mappings:
doc:
properties:
body:
text:
type: text
analyzer: index
search_analyzer: search
@ -43,9 +43,10 @@
body:
query:
match:
text: fox runs
text:
query: fox runs
operator: AND
- match: {hits.count: 1}
- match: {hits.total: 1}
- do:
index:
@ -60,6 +61,7 @@
body:
query:
match:
text: fox runs
text:
query: fox runs
operator: AND
- match: {hits.count: 2}
- match: {hits.total: 2}

View File

@ -5,6 +5,14 @@
indices.create:
index: test
body:
settings:
number_of_shards: 1
number_of_replicas: 1
analysis:
analyzer:
has_payloads:
tokenizer: standard
filter: [type_as_payload]
mappings:
doc:
properties:
@ -12,14 +20,6 @@
type: text
term_vector: with_positions_offsets_payloads
analyzer: has_payloads
settings:
number_of_shards: 1
number_of_replicas: 1
analysis:
analyzer:
had_payloads:
tokenizer: standard
filter: [type_as_payload]
- do:
index:
@ -37,4 +37,4 @@
id: 1
payloads: true
- 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==}