@[TOC][match_phrase_prefix] query does not support [zero_terms_query] 问题解决
问题
elasticsearch版本:7.8
客户端elasticsearch: 7.12.1
报错代码
QueryBuilders.matchPhrasePrefixQuery(SEARCH_KEYWORD
, inputVO.getKeyword())
问题原因及解决
match_phrase_prefix在Elasticsearch 7.10版本后才支持zero_terms_query选项文章来源:https://www.uudwc.com/A/g0jBG/
相关资料
https://github.com/elastic/elasticsearch/issues/58468文章来源地址https://www.uudwc.com/A/g0jBG/