public class RegexpFilterBuilder extends BaseFilterBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
RegexpFilterBuilder(String name,
String regexp)
A filter that restricts search results to values that have a matching prefix in a given
field.
|
Modifier and Type | Method and Description |
---|---|
RegexpFilterBuilder |
cache(boolean cache)
Should the filter be cached or not.
|
RegexpFilterBuilder |
cacheKey(String cacheKey) |
void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
RegexpFilterBuilder |
filterName(String filterName)
Sets the filter name for the filter that can be used when searching for matched_filters per hit.
|
RegexpFilterBuilder |
flags(RegexpFlag... flags)
Sets the regexp flags (see
RegexpFlag ). |
RegexpFilterBuilder |
maxDeterminizedStates(int value)
Sets the regexp maxDeterminizedStates.
|
buildAsBytes, buildAsBytes, toString, toXContent
public RegexpFilterBuilder filterName(String filterName)
public RegexpFilterBuilder flags(RegexpFlag... flags)
RegexpFlag
).public RegexpFilterBuilder maxDeterminizedStates(int value)
public RegexpFilterBuilder cache(boolean cache)
public RegexpFilterBuilder cacheKey(String cacheKey)
public void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseFilterBuilder
IOException
Copyright © 2009–2015. All rights reserved.