这些是我的设置:
"nGram_filter": {
"type": "nGram",
"min_gram": 2,
"max_gram": 20,
"token_chars": [
"letter",
"digit",
"punctuation",
"symbol"
]
}
},
"analyzer": {
"nGram_analyzer": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"lowercase",
"asciifolding",
"nGram_filter"
]
},
"whitespace_analyzer": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"lowercase",
"asciifolding"
]
}
}
我正在使用
"index_analyzer": "nGram_analyzer",
"search_analyzer": "whitespace_analyzer"
但我无法在像$这样的符号上获得ngram,附加curl请求
_analyze ? analyzer = nGram_analyzer ' -d '$100 '
{"tokens":[
{"token":"10","start_offset":1,"end_offset":4,"type":"word","position":1},
{"token":"100","start_offset":1,"end_offset":4,"type":"word","position":1},
{"token":"00","start_offset":1,"end_offset":4,"type":"word","position":1}
]}
它没有给我签署令牌。如果你能告诉我哪里出错了,我将非常感激。