match_phase (#1194)

This commit is contained in:
lican 2018-05-15 23:46:47 +08:00 committed by 吴晟 Wu Sheng
parent b431f4145c
commit 08d9324391
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class SegmentDurationEsUIDAO extends EsDAO implements ISegmentDurationUID
boolQueryBuilder.must().add(rangeQueryBuilder);
}
if (StringUtils.isNotEmpty(operationName)) {
mustQueryList.add(QueryBuilders.matchQuery(SegmentDurationTable.SERVICE_NAME.getName(), operationName));
mustQueryList.add(QueryBuilders.matchPhraseQuery(SegmentDurationTable.SERVICE_NAME.getName(), operationName));
}
if (CollectionUtils.isNotEmpty(segmentIds)) {
boolQueryBuilder.must().add(QueryBuilders.termsQuery(SegmentDurationTable.SEGMENT_ID.getName(), segmentIds));