Query Filter

edit

See Query Filter

FilterBuilders.queryFilter(
        QueryBuilders.queryString("this AND that OR thus")
    );

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