public static enum MultiMatchQueryBuilder.Type extends Enum<MultiMatchQueryBuilder.Type>
Enum Constant and Description |
---|
BEST_FIELDS
Uses the best matching boolean field as main score and uses
a tie-breaker to adjust the score based on remaining field matches
|
CROSS_FIELDS
Uses a blended DocumentFrequency to dynamically combine the queried
fields into a single field given the configured analysis is identical.
|
MOST_FIELDS
Uses the sum of the matching boolean fields to score the query
|
PHRASE
Uses the best matching phrase field as main score and uses
a tie-breaker to adjust the score based on remaining field matches
|
PHRASE_PREFIX
Uses the best matching phrase-prefix field as main score and uses
a tie-breaker to adjust the score based on remaining field matches
|
Modifier and Type | Method and Description |
---|---|
MatchQuery.Type |
matchQueryType() |
static MultiMatchQueryBuilder.Type |
parse(String value,
ParseFieldMatcher parseFieldMatcher) |
ParseField |
parseField() |
float |
tieBreaker() |
static MultiMatchQueryBuilder.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MultiMatchQueryBuilder.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MultiMatchQueryBuilder.Type BEST_FIELDS
public static final MultiMatchQueryBuilder.Type MOST_FIELDS
public static final MultiMatchQueryBuilder.Type CROSS_FIELDS
public static final MultiMatchQueryBuilder.Type PHRASE
public static final MultiMatchQueryBuilder.Type PHRASE_PREFIX
public static MultiMatchQueryBuilder.Type[] values()
for (MultiMatchQueryBuilder.Type c : MultiMatchQueryBuilder.Type.values()) System.out.println(c);
public static MultiMatchQueryBuilder.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic float tieBreaker()
public MatchQuery.Type matchQueryType()
public ParseField parseField()
public static MultiMatchQueryBuilder.Type parse(String value, ParseFieldMatcher parseFieldMatcher)
Copyright © 2009–2016. All rights reserved.