【发布时间】:2015-06-08 17:36:48
【问题描述】:
{
"_source": {
"enabled": false
},
"analysis": {
"analyzer": {
"default": {
"type": "custom",
"tokenizer": "uax_url_email",
"filter": "lowercase,standard,stop"
}
}
},
"mappings": {
"table": {
"properties": {
"field1": {
"type": "string",
"include_in_all": false,
"index": "no"
},
"field2": {
"type": "long",
"include_in_all": false,
"index": "no"
},
"field3": {
"type": "string",
"index": "analyzed"
}
}
}
}
}
分析器在测试时似乎不工作。分析器不应该索引停用词,它还应该索引整个电子邮件地址。当我“TEST ANALYZER”并输入“Jack is fine”时,所有三个单词的索引都会发生。我不希望它索引英语中的停用词,例如“and”、“is”等。
【问题讨论】:
标签: elasticsearch elasticsearch-plugin