赞
踩
ES搜索关键字指定ik分词为ik_max_word,也可以指定分词为ik_smart
boolQueryBuilder.should(QueryBuilders.matchQuery("name",
searchEsParam.getKeyword()).operator(Operator.AND)
.analyzer("ik_max_word")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。