Search: Fetching fields that end up extracted from source might fail, closes #1431.

This commit is contained in:
Shay Banon 2011-10-27 20:28:38 +02:00
parent 8922d5b073
commit 723d2e8b15
1 changed files with 1 additions and 1 deletions

View File

@ -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);