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

Prefix Filter

edit

See Prefix Filter

FilterBuilders.prefixFilter("user", "ki");

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