Skip to content

Instantly share code, notes, and snippets.

@t-tomalak
Last active June 28, 2018 07:59
Show Gist options
  • Save t-tomalak/3baf6db5984c2526e294ed56cb9294f6 to your computer and use it in GitHub Desktop.
Save t-tomalak/3baf6db5984c2526e294ed56cb9294f6 to your computer and use it in GitHub Desktop.
PHPers Workshopos
GET /_analyze
{
"analyzer": "standard",
"text": ["Test, test"]
}
GET /_analyze
{
"tokenizer": "standard",
"filter": [
"asciifolding"
],
"text": [
"Jestę, tęsterem"
]
}
GET _search
{
"query": {
"bool": {
"must": [
{
"term": {
"description": {
"value": "twi"
}
}
}
]
}
}
}
GET /_analyze
{
"tokenizer": "whitespace",
"filter": [
"lowercase"
],
"char_filter": [
"html_strip"
],
"text": [
"<strong>Test</strong> text"
]
}
GET _search
{
"query": {
"bool": {
"must": [
{
"term": {
"description": {
"value": "dobry"
}
}
}
]
}
}
}
GET /_analyze
{
"tokenizer": "whitespace",
"filter": [
"lowercase"
],
"text": [
"Test,text"
]
}
GET /_analyze
{
"tokenizer": "whitespace",
"char_filter": [
{
"type": "mapping",
"mappings": [
"+1 => _thumbs_up_",
"-1 => _thumbs_down_"
]
}
],
"text": [
"+1 -1"
]
}
GET /_analyze
{
"tokenizer": "standard",
"filter": [
"asciifolding",
{
"type": "ngram",
"min_gram": 3,
"max_gram": 4
}
],
"text": [
"Jestę, tęsterem"
]
}
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