Enum Class AnnotationsWebService.MatchedVia

java.lang.Object
java.lang.Enum<AnnotationsWebService.MatchedVia>
ubic.gemma.rest.AnnotationsWebService.MatchedVia
All Implemented Interfaces:
Serializable, Comparable<AnnotationsWebService.MatchedVia>, Constable
Enclosing class:
AnnotationsWebService

public static enum AnnotationsWebService.MatchedVia extends Enum<AnnotationsWebService.MatchedVia>
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
  • Enum Constant Details

    • PREFERRED_LABEL

      public static final AnnotationsWebService.MatchedVia PREFERRED_LABEL
      Query normalises to the term's preferred label exactly. Strongest match.
    • EXACT_SYNONYM

      public static final AnnotationsWebService.MatchedVia EXACT_SYNONYM
      Query normalises to one of the term's exact-OBO synonyms exactly.
    • NARROW_SYNONYM

      public static final AnnotationsWebService.MatchedVia NARROW_SYNONYM
    • BROAD_SYNONYM

      public static final AnnotationsWebService.MatchedVia BROAD_SYNONYM
    • ALT_LABEL

      public static final AnnotationsWebService.MatchedVia ALT_LABEL
    • LABEL_PREFIX

      public static final AnnotationsWebService.MatchedVia 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 than PREFERRED_LABEL but stronger than a bag-of-tokens overlap — survives typeahead "type while you search" usage.
    • LABEL_TOKENS

      public static final AnnotationsWebService.MatchedVia 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

      public static final AnnotationsWebService.MatchedVia SYNONYM_TOKENS
      Same as LABEL_TOKENS but 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

      public static AnnotationsWebService.MatchedVia[] 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

      public static AnnotationsWebService.MatchedVia valueOf(String name)
      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 name
      NullPointerException - if the argument is null