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);
}
Aggregations