社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
私信  •  关注

Peeyush

Peeyush 最近创建的主题
Peeyush 最近回复了
6 年前
回复了 Peeyush 创建的主题 » elasticsearch termquery在id字段中查找子字符串

Term ElasticSearch中的查询完全匹配,因此IMP将不匹配14133095_IMP。您需要使用 match 进行全文搜索的查询。 有关这些查询的更多信息,请访问

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html