Commit c3a5f553 authored by shiyu's avatar shiyu

es查询列表排除逻辑删除数据

parent 1e54f5b1
......@@ -112,6 +112,8 @@ public class ItemEsDao {
}
Query wildcardQuery = WildcardQuery.of(w->w.field("images").value("*_*"))._toQuery();
build.must(wildcardQuery);
Query isDeleteQuery = TermQuery.of(t->t.field("isDeleted").value(false))._toQuery();
build.must(isDeleteQuery);
builder.size(size);
SearchRequest searchRequest = builder.build();
logger.info("查询语句 : {}", searchRequest.toString());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment