Enum TermVector

    • Enum Constant Detail

      • DEFAULT

        public static final TermVector DEFAULT
        Use the backend-specific default.
      • YES

        public static final TermVector YES
        Store term vectors.
      • NO

        public static final TermVector NO
        Do not store term vectors.
      • WITH_POSITIONS

        public static final TermVector WITH_POSITIONS
        Store the term vectors. Also store token positions into the term.
      • WITH_OFFSETS

        public static final TermVector WITH_OFFSETS
        Store the term vectors. Also store token character offsets into the term.
      • WITH_POSITIONS_OFFSETS

        public static final TermVector WITH_POSITIONS_OFFSETS
        Store the term vectors. Also store token positions and token character offsets into the term.
      • WITH_POSITIONS_PAYLOADS

        public static final TermVector WITH_POSITIONS_PAYLOADS
        Store the term vectors. Also store token positions and token payloads into the term.
      • WITH_POSITIONS_OFFSETS_PAYLOADS

        public static final TermVector WITH_POSITIONS_OFFSETS_PAYLOADS
        Store the term vectors. Also store token positions, token character offsets and token payloads into the term.
    • Method Detail

      • values

        public static TermVector[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TermVector c : TermVector.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TermVector valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null