Elasticsearch自动查找查询

时间:2019-05-19 13:49:56

标签: elasticsearch tokenize elasticsearch-6 query-analyzer

我需要以下问题陈述的帮助

问题是要实现具有以下要求的自动查找功能

Input -> BTech
Output ->
 BTech in cse
 b.tech in computer science
 b tech in computer

Input -> B.Tech
Output ->
 BTech in cse
 b.tech in computer science
 b tech in computer

Input -> Tec
Output ->
 Technological Advance 
 Artificial Technology
 BTech in cse
 b.tech in computer science
 b tech in computer

但是使用text = b.tech,我的搜索结果也与“ b.e.”匹配令牌,这是最​​重要的。结果应该使btech处于首位。 (我用过Ngrams,word_delimiter等)

在这里我并不是要特别显示我的查询,因为它变得非常复杂,会造成混乱。如果有人以全新的思路从头开始写作,将不胜感激。

有人可以帮我解决所需的查询吗? :|

0 个答案:

没有答案