this.queryBuilder = booleanQuery;
}
// Text
if (text != null) {
MatchQueryBuilder textQueryBuilder = QueryBuilders.matchQuery(TEXT, text);
booleanQuery.must(textQueryBuilder);
this.queryBuilder = booleanQuery;
}
// Fuzzy text
if (fuzzyText != null) {
FuzzyLikeThisQueryBuilder fuzzyQueryBuilder = QueryBuilders.fuzzyLikeThisQuery(TEXT_FUZZY).likeText(fuzzyText);
booleanQuery.must(fuzzyQueryBuilder);
this.queryBuilder = booleanQuery;
}
// Fulltext
if (fulltext != null) {
MatchQueryBuilder textQueryBuilder = QueryBuilders.matchQuery(FULLTEXT, fulltext);
booleanQuery.must(textQueryBuilder);
this.queryBuilder = booleanQuery;
}
// Fuzzy fulltext