This is my query
GET /momsarchival1/_search
{
"track_total_hits": true,
"query": {
"bool": {
"must": [
{
"bool": {
"must": [
{
"query_string": {
"default_field":
"GECORRIGEERDETOEVOEGING.keyword",
"query": "*(a-n)*",
"analyze_wildcard": "true",
"default_operator": "AND"
}
}
]
}
}
]
}
},
"_source": ["GECORRIGEERDETOEVOEGING"],
"size": 30,
"from": 0,
"sort": [
{
"ORDERNUMMER.keyword": {
"order": "asc"
}
}
]
}
This is my index mapping
{
"settings": {
"number_of_shards": 1,
"analysis": {
"analyzer": {
"custom_analyzer": {
"tokenizer": "custom_tokenizer"
}
},
"tokenizer": {
"custom_tokenizer": {
"type": "ngram",
"min_gram": 2,
"max_gram": 30,
"token_chars": [
"letter",
"digit",
"symbol",
"punctuation"
]
}
}
}
},
"mappings": {
"properties": {
"GECORRIGEERDETOEVOEGING": {
"type": "text",
"fields": {
"formatted": {
"type": "text",
"analyzer": "custom_analyzer"
},
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"GECORRIGEERDISRA": {
"type": "text",
"fields": {
"formatted": {
"type": "text",
"analyzer": "standard"
},
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}