In the tutorials section Document queries shows a number of examples that you can use.
query multiple and select one or more main branches: must, must not, should/or. The next block sets the condition for the branch: exist, range, match or fuzzy. With the
current user block you can adapt the results to specific user details or scopes.
search streaming. This block passes the query results one by one to a function. Limit this function's concurrency if the results are interdependent. Alternatively you can use a
search block and update multiple documents, but as soon as you work with a large number of results it is better to use search streaming.
aggregation of data for statistical use. Create pivot tables with the
group on fields or build dynamic functions that use the group data. Aggregations provide statistical values like average and min/max and can be used to make UI graphs.
part of the Basic Rual Developer courses