Enum Query.OutputType

    • Enum Constant Detail

      • SHORT

        public static final Query.OutputType SHORT
        Display document pointers, but not intervals.
      • LONG

        public static final Query.OutputType LONG
        Display document pointers and not intervals (requires an index with positions).
      • SNIPPET

        public static final Query.OutputType SNIPPET
        Display document pointers and snippets (requires an index with positions and a collection).
      • TREC

        public static final Query.OutputType TREC
        Display results in TREC format.
    • Method Detail

      • values

        public static Query.OutputType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Query.OutputType 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