Enum Class AnnotationsWebService.MatchedVia
- All Implemented Interfaces:
Serializable, Comparable<AnnotationsWebService.MatchedVia>, Constable
- Enclosing class:
AnnotationsWebService
JSON-friendly enumeration of which Lucene field produced a hit. Serialised as the
lowercase-snake string in
token for the matchedVia response field.- Author:
- tesarst
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionQuery normalises to one of the term's exact-OBO synonyms exactly.Query is a prefix of the preferred label (or the label is a prefix of the query, when the query is the longer of the two).Every content token in the query (after lowercase + length-≥-2 + stop-word strip) appears as a substring of the preferred label.Query normalises to the term's preferred label exactly.Same asLABEL_TOKENSbut the coverage check passed against a synonym (preferred-label coverage failed). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AnnotationsWebService.MatchedVia[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREFERRED_LABEL
Query normalises to the term's preferred label exactly. Strongest match. -
EXACT_SYNONYM
Query normalises to one of the term's exact-OBO synonyms exactly. -
NARROW_SYNONYM
-
RELATED_SYNONYM
-
BROAD_SYNONYM
-
ALT_LABEL
-
LABEL_PREFIX
Query is a prefix of the preferred label (or the label is a prefix of the query, when the query is the longer of the two). Weaker thanPREFERRED_LABELbut stronger than a bag-of-tokens overlap — survives typeahead "type while you search" usage. -
LABEL_TOKENS
Every content token in the query (after lowercase + length-≥-2 + stop-word strip) appears as a substring of the preferred label. Catches multi-token queries that don't normalise-equal to anything (e.g."uzh-2 cell"against the label"uzh-2 cell line") but DO carry full token coverage. Distinguishes "all-tokens-present" from "stop-word matched alone" — the latter no longer survives the token-coverage filter at all. -
SYNONYM_TOKENS
Same asLABEL_TOKENSbut the coverage check passed against a synonym (preferred-label coverage failed). Surfaces synonym-driven multi-token matches when the preferred label happens to lack one of the query tokens.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-