Class Insanity


  • @Deprecated
    public class Insanity
    extends Object
    Deprecated.
    Lucene 5.0 removes "accidental" insanity, so you must explicitly create it.

    This class creates insanity for two specific situations:

    • calling ord or rord functions on a single-valued numeric field.
    • doing grouped faceting (group.facet) on a single-valued numeric field.
    • Constructor Detail

      • Insanity

        public Insanity()
        Deprecated.
    • Method Detail

      • wrapInsanity

        public static org.apache.lucene.index.LeafReader wrapInsanity​(org.apache.lucene.index.LeafReader sane,
                                                                      String insaneField)
        Deprecated.
        Returns a view over sane where insaneField is a string instead of a numeric.