Class PointField

  • Direct Known Subclasses:
    DatePointField, DoublePointField, FloatPointField, IntPointField, LongPointField

    public abstract class PointField
    extends NumericFieldType
    Provides field types to support for Lucene's IntPoint, LongPoint, FloatPoint and DoublePoint. See PointRangeQuery for more details. It supports integer, float, long and double types. See subclasses for details.
    DocValues are supported for single-value cases (NumericDocValues). FieldCache is not supported for PointFields, so sorting, faceting, etc on these fields require the use of docValues="true" in the schema.
    • Field Detail

      • TEST_HACK_IGNORE_USELESS_TRIEFIELD_ARGS

        public static boolean TEST_HACK_IGNORE_USELESS_TRIEFIELD_ARGS
        The Test framework can set this global variable to instruct PointField that (on init) it should be tolerant of the precisionStep argument used by TrieFields. This allows for simple randomization of TrieFields and PointFields w/o extensive duplication of <fieldType/> declarations.

        NOTE: When TrieField is removed, this boolean must also be removed

        WARNING: This API is experimental and might change in incompatible ways in the next release.
        NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • PointField

        public PointField()