I have problem with shingle filter.
My setting shingle below:
"filter_shingle": {
"type": "shingle",
"min_shingle_size": 2,
"max_shingle_size": 3,
"output_unigrams": false
}
"analyzer_1": {
"type": "custom",
"tokenizer": "standard",
"filter": ["asciifolding","lowercase","filter_shingle"]
}
i expect field data example: "My name is", after procee with this filter, data become:
"my name"
"my name is"
"name is"
...
"field1" using "analyzer_1"
Query string here (don't using "match_phrase")
"query_string" : {
"default_operator": "AND",
"fields" : ["field1"],
"query" : "My name",
"analyzer": "keyword"
}
But no data retrieve, not thing erros throw when I create index with mapping and analyzer.
Can anyone help me, thank you so much (sorry for poor EN)
Since you're using a
keyword
analyzer in yourquery_string
query, you need to type your input in lowercase, i.e.my name
instead ofMy name
, since your indexed token ismy name
and notMy name