看,灰机...

how to custom analyzer with transport of Java?

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

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?
已邀请:

要回复问题请先登录注册