mirror of https://github.com/apache/lucene.git
weight value sources for pseudo-fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1136526 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe7593efee
commit
4c5c3c86e2
|
@ -59,12 +59,17 @@ public class ValueSourceAugmenter extends DocTransformer
|
|||
|
||||
@Override
|
||||
public void setContext( TransformContext context ) {
|
||||
try {
|
||||
IndexReader reader = qparser.getReq().getSearcher().getIndexReader();
|
||||
readerContexts = reader.getTopReaderContext().leaves();
|
||||
docValuesArr = new DocValues[readerContexts.length];
|
||||
|
||||
searcher = qparser.getReq().getSearcher();
|
||||
this.fcontext = ValueSource.newContext(searcher);
|
||||
fcontext = ValueSource.newContext(searcher);
|
||||
this.valueSource.createWeight(fcontext, searcher);
|
||||
} catch (IOException e) {
|
||||
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue