首页 > 解决方案 > Elasticsearch 自动查找查询

问题描述

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

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

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,我的结果也与“be”标记匹配,这是最重要的。结果应该是让 btech 位居榜首。(我用过 Ngrams、word_delimiter 等)

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

谁能帮我解决所需的查询?:|

标签: elasticsearchtokenizeelasticsearch-6query-analyzer

解决方案


推荐阅读