public static enum SolrQueryParserBase.SynonymQueryStyle extends Enum<SolrQueryParserBase.SynonymQueryStyle>
|Enum Constant and Description|
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
(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
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|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final SolrQueryParserBase.SynonymQueryStyle AS_SAME_TERM
public 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 name
NullPointerException- if the argument is null
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.