org.apache.solr.search

## Class Insanity

- java.lang.Object
- - org.apache.solr.search.Insanity

- Deprecated.

      @Deprecated
      public class Insanity
      extends Object

  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 Summary

    Constructors
    Constructor and Description
    `Insanity()` Deprecated.

  - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `static LeafReader` | `wrapInsanity(LeafReader sane, String insaneField)` Deprecated. Returns a view over `sane` where `insaneField` is a string instead of a numeric.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Insanity

          public Insanity()

      Deprecated.

  - ### Method Detail

    - #### wrapInsanity

          public static LeafReader wrapInsanity(LeafReader sane,
                                                String insaneField)

      Deprecated.
      Returns a view over `sane` where `insaneField` is a string instead of a numeric.

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.