ES搜索关键字指定ik分词为ik_max_word,也可以指定分词为ik_smart
boolQueryBuilder.should(QueryBuilders.matchQuery("name",
searchEsParam.getKeyword()).operator(Operator.AND)
.analyzer("ik_max_word")
ES搜索关键字指定ik分词为ik_max_word,也可以指定分词为ik_smart
boolQueryBuilder.should(QueryBuilders.matchQuery("name",
searchEsParam.getKeyword()).operator(Operator.AND)
.analyzer("ik_max_word")