Class 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 Detail

      • FieldUtil

        public FieldUtil()
    • Method Detail

      • 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
      • 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)