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(); //matchQuery searchSourceBuilder.query(QueryBuilders.matchQuery("_id", "A00TrWUBjYV5_LlHi7QX")); //rangeQuery RangeQueryBuilder rangeQuery = new RangeQueryBuilder("@timestamp").from(matadata.getFromTime()).to(matadata.getToTime()); rangeQuery.format("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); searchSourceBuilder.query(rangeQuery);