Package org.apache.solr.search

Examples of org.apache.solr.search.SolrIndexReader


                          // sort fields
      Field field = new Field("dummy", "", Field.Store.YES, Field.Index.NO); // a
                                          // dummy
                                          // Field

      SolrIndexReader reader = searcher.getReader();
      SolrIndexReader[] readers = reader.getLeafReaders();
      SolrIndexReader subReader = reader;
      if (readers.length == 1) {
        // if there is a single segment, use that subReader and avoid
        // looking up each time
        subReader = readers[0];
        readers = null;
View Full Code Here

TOP

Related Classes of org.apache.solr.search.SolrIndexReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.