Search: Fetching fields that end up extracted from source might fail, closes #1431.
This commit is contained in:
parent
8922d5b073
commit
723d2e8b15
|
@ -180,7 +180,7 @@ public class FetchPhase implements SearchPhase {
|
|||
|
||||
// go over and extract fields that are not mapped / stored
|
||||
context.lookup().setNextReader(subReader);
|
||||
context.lookup().setNextDocId(docId);
|
||||
context.lookup().setNextDocId(subDoc);
|
||||
if (extractFieldNames != null) {
|
||||
for (String extractFieldName : extractFieldNames) {
|
||||
Object value = context.lookup().source().extractValue(extractFieldName);
|
||||
|
|
Loading…
Reference in New Issue