Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
374 views
in Technique[技术] by (71.8m points)

how the elasticsearch seprate words by :

Elasticsearch version: "2.3.1"

Plugins installed: [null]

JVM version:"1.8.0_65"

OS version: "CentOS Linux release 6.2 (Final)"

Description of the problem including expected versus actual behavior:

Steps to reproduce:
1.import this message "tody we go to gdeliveryd: debug:DS::MidasFailInfo:ret=0" in ES
2.search
3.when i search use MidasFailInfo:ret ,it returns normally;
bu when i use part of this words , such as use MidasFailInfo ,it returns empty

i want it returns normally when i search "MidasFailInfo" ,thx


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

first, edit your index mapping, use customized tokenizer. then reindex your document.

About mapping, see govern document with your elasticsearch version.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...