public static enum SolrQueryParserBase.SynonymQueryStyle extends Enum<SolrQueryParserBase.SynonymQueryStyle>
AS_SAME_TERM
PICK_BEST
AS_DISTINCT_TERMS| Enum Constant and Description |
|---|
AS_DISTINCT_TERMS
each synonym scored indepedently, then added together (ie boolean query)
so if "pants" has df 500, and "khakis" a df of 50, khakis matches are scored higher but
summed with any "pants" matches
appropriate when more specific synonyms should score higher, but we don't want to ignore
less specific synonyms
|
AS_SAME_TERM
(default) synonym terms share doc freq
so if "pants" has df 500, and "khakis" a df of 50, uses 500 df when scoring both terms
appropriate for exact synonyms
see
SynonymQuery |
PICK_BEST
highest scoring term match chosen (ie dismax)
so if "pants" has df 500, and "khakis" a df of 50, khakis matches are scored higher
appropriate when more specific synonyms should score higher
|
| Modifier and Type | Method and Description |
|---|---|
static SolrQueryParserBase.SynonymQueryStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SolrQueryParserBase.SynonymQueryStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SolrQueryParserBase.SynonymQueryStyle AS_SAME_TERM
SynonymQuerypublic static final SolrQueryParserBase.SynonymQueryStyle PICK_BEST
public static final SolrQueryParserBase.SynonymQueryStyle AS_DISTINCT_TERMS
public static SolrQueryParserBase.SynonymQueryStyle[] values()
for (SolrQueryParserBase.SynonymQueryStyle c : SolrQueryParserBase.SynonymQueryStyle.values()) System.out.println(c);
public static SolrQueryParserBase.SynonymQueryStyle 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 nullCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.