Query Filter

edit

See Query Filter

FilterBuilder filter = queryFilter(
        queryString("this AND that OR thus")    
    );

query you want to wrap as a filter

Note that you can cache the result using QueryFilterBuilder#cache(boolean) method. See Caching.