Last active
June 28, 2018 07:59
-
-
Save t-tomalak/3baf6db5984c2526e294ed56cb9294f6 to your computer and use it in GitHub Desktop.
PHPers Workshopos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /_analyze | |
| { | |
| "analyzer": "standard", | |
| "text": ["Test, test"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /_analyze | |
| { | |
| "tokenizer": "standard", | |
| "filter": [ | |
| "asciifolding" | |
| ], | |
| "text": [ | |
| "Jestę, tęsterem" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET _search | |
| { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "term": { | |
| "description": { | |
| "value": "twi" | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /_analyze | |
| { | |
| "tokenizer": "whitespace", | |
| "filter": [ | |
| "lowercase" | |
| ], | |
| "char_filter": [ | |
| "html_strip" | |
| ], | |
| "text": [ | |
| "<strong>Test</strong> text" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET _search | |
| { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "term": { | |
| "description": { | |
| "value": "dobry" | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /_analyze | |
| { | |
| "tokenizer": "whitespace", | |
| "filter": [ | |
| "lowercase" | |
| ], | |
| "text": [ | |
| "Test,text" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /_analyze | |
| { | |
| "tokenizer": "whitespace", | |
| "char_filter": [ | |
| { | |
| "type": "mapping", | |
| "mappings": [ | |
| "+1 => _thumbs_up_", | |
| "-1 => _thumbs_down_" | |
| ] | |
| } | |
| ], | |
| "text": [ | |
| "+1 -1" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /_analyze | |
| { | |
| "tokenizer": "standard", | |
| "filter": [ | |
| "asciifolding", | |
| { | |
| "type": "ngram", | |
| "min_gram": 3, | |
| "max_gram": 4 | |
| } | |
| ], | |
| "text": [ | |
| "Jestę, tęsterem" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /_analyze | |
| { | |
| "tokenizer": "standard", | |
| "text": [ | |
| "Test,text" | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment