Search in sources :

Example 1 with QueryContext

use of org.apache.solr.search.QueryContext in project lucene-solr by apache.

the class FieldUtil method getSortedDocValues.

/** Simpler method that creates a request context and looks up the field for you */
public static SortedDocValues getSortedDocValues(SolrIndexSearcher searcher, String field) throws IOException {
    SchemaField sf = searcher.getSchema().getField(field);
    QueryContext qContext = QueryContext.newContext(searcher);
    return getSortedDocValues(qContext, sf, null);
}
Also used : SchemaField(org.apache.solr.schema.SchemaField) QueryContext(org.apache.solr.search.QueryContext)

Aggregations

SchemaField (org.apache.solr.schema.SchemaField)1 QueryContext (org.apache.solr.search.QueryContext)1