Skip to content

Commit

Permalink
Add a test showing that no-index synonyms can be used with the Analyz…
Browse files Browse the repository at this point in the history
…e API

Relates to elastic#23943
  • Loading branch information
romseygeek committed Apr 3, 2019
1 parent 78a590f commit df1cb4b
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,20 @@
- match: { tokens.3.token: magazine }
- match: { tokens.3.position: 2 }

---
"synonym_without_index":
- do:
indices.analyze:
body:
text: wibble
tokenizer: standard
filter: [ { type: synonym, synonyms: [ "wibble, quack" ]}]
- length: { tokens: 2 }
- match: { tokens.0.token: wibble }
- match: { tokens.0.position: 0 }
- match: { tokens.1.token: quack }
- match: { tokens.1.position: 0 }

---
"synonym_graph":
- do:
Expand Down

0 comments on commit df1cb4b

Please sign in to comment.