Package org.apache.solr.search.facet
Class FieldUtil
java.lang.Object
org.apache.solr.search.facet.FieldUtil
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
- Porting helper... may be removed if it offers no value in the future.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfaceThe following ord visitors and wrappers are a work in progress and experimentalstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.index.NumericDocValuesgetNumericDocValues(QueryContext context, SchemaField field, QParser qparser) static FieldUtil.OrdValuesgetOrdValues(org.apache.lucene.index.SortedDocValues singleDv, org.apache.lucene.search.DocIdSetIterator disi) static org.apache.lucene.index.SortedDocValuesgetSortedDocValues(QueryContext context, SchemaField field, QParser qparser) static org.apache.lucene.index.SortedDocValuesgetSortedDocValues(SolrIndexSearcher searcher, String field) Simpler method that creates a request context and looks up the field for youstatic org.apache.lucene.index.SortedSetDocValuesgetSortedSetDocValues(QueryContext context, SchemaField field, QParser qparser) static booleanisFieldCache(org.apache.lucene.index.SortedDocValues singleDv) static voidvisitOrds(org.apache.lucene.index.SortedDocValues singleDv, org.apache.lucene.search.DocIdSetIterator disi, FieldUtil.OrdFunc ordFunc)
-
Constructor Details
-
FieldUtil
public FieldUtil()
-
-
Method Details
-
getSortedDocValues
public static org.apache.lucene.index.SortedDocValues getSortedDocValues(SolrIndexSearcher searcher, String field) throws IOException Simpler method that creates a request context and looks up the field for you- Throws:
IOException
-
getSortedDocValues
public static org.apache.lucene.index.SortedDocValues getSortedDocValues(QueryContext context, SchemaField field, QParser qparser) throws IOException - Throws:
IOException
-
getSortedSetDocValues
public static org.apache.lucene.index.SortedSetDocValues getSortedSetDocValues(QueryContext context, SchemaField field, QParser qparser) throws IOException - Throws:
IOException
-
getNumericDocValues
public static org.apache.lucene.index.NumericDocValues getNumericDocValues(QueryContext context, SchemaField field, QParser qparser) throws IOException - Throws:
IOException
-
isFieldCache
public static boolean isFieldCache(org.apache.lucene.index.SortedDocValues singleDv) -
visitOrds
public static void visitOrds(org.apache.lucene.index.SortedDocValues singleDv, org.apache.lucene.search.DocIdSetIterator disi, FieldUtil.OrdFunc ordFunc) throws IOException - Throws:
IOException
-
getOrdValues
public static FieldUtil.OrdValues getOrdValues(org.apache.lucene.index.SortedDocValues singleDv, org.apache.lucene.search.DocIdSetIterator disi)
-