New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Prefix Filter

edit

See Prefix Filter

FilterBuilder filter = prefixFilter(
    "user", 
    "ki"    
);

field

prefix

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

Was this helpful?
Feedback