Terms Filter

edit

See Terms Filter

FilterBuilders.termsFilter("user", "kimchy", "elasticsearch")
    .execution("plain");     // Optional, can be also "bool", "and" or "or"
                            // or "bool_nocache", "and_nocache" or "or_nocache"

Note that you can ask not to cache the result using TermsFilterBuilder#cache(boolean) method. See Caching.