Class FieldUtil

java.lang.Object
org.apache.solr.search.facet.FieldUtil

public class FieldUtil extends Object
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.
  • 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)