Terms Filter

edit

See Terms Filter

FilterBuilder filter = termsFilter(
        "user",             
        "kimchy",           
        "elasticsearch"     
    )
    .execution("plain");    

field

terms

execution mode: could be plain, fielddata, bool, and, 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.