好的想法是十分钱一打,真正无价的是能够实现这些想法的人。

how to custom analyzer with transport of Java?

Elasticsearch | 作者 Kervin | 发布于2017年10月18日 | 阅读数:893

e.g.

{
"settings": {
"analysis": {
"filter": {
"default_stopwords": {
"type": "stop",
"stopwords": ["a","an","and","are","as","at","be","but","by","for","if","in","into","is","it","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"]
}
},
"char_filter": {
"symbol_transform": {
"mappings": [
"&=> and ",
"||=> or "
],
"type": "mapping"
}
},
"analyzer": {
"es_analyzer": {
"filter": [
"lowercase",
"default_stopwords"
],
"char_filter": [
"html_strip",
"symbol_transform"
],
"type": "custom",
"tokenizer": "standard"
}
}
}
}
}

how to custom analyzer with transport of Java?
已邀请:

要回复问题请先登录注册