Client API Multiple queries

I want to use condition search and time search at the same time.
However, the query () API seems to be able to issue only one condition.
Can I put multiple conditions?

My sources are:

SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();

searchSourceBuilder.query(QueryBuilders.matchQuery("_id", "A00TrWUBjYV5_LlHi7QX"));

RangeQueryBuilder rangeQuery = new RangeQueryBuilder("@timestamp").from(matadata.getFromTime()).to(matadata.getToTime());

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.