Package org.apache.solr.search
Class Insanity
- java.lang.Object
-
- org.apache.solr.search.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
ordorrordfunctions on a single-valued numeric field. - doing grouped faceting (
group.facet) on a single-valued numeric field.
- calling
-
-
Constructor Summary
Constructors Constructor Description Insanity()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static org.apache.lucene.index.LeafReaderwrapInsanity(org.apache.lucene.index.LeafReader sane, String insaneField)Deprecated.Returns a view oversanewhereinsaneFieldis a string instead of a numeric.
-
-
-
Method Detail
-
wrapInsanity
public static org.apache.lucene.index.LeafReader wrapInsanity(org.apache.lucene.index.LeafReader sane, String insaneField)Deprecated.Returns a view oversanewhereinsaneFieldis a string instead of a numeric.
-
-