lucene 4: Fixed compile error in FieldLookup

This commit is contained in:
Martijn van Groningen 2012-10-29 15:42:29 +01:00 committed by Shay Banon
parent 42a1d25064
commit d531fa7a46
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
package org.elasticsearch.search.lookup;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Fieldable;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexableField;
import org.elasticsearch.index.mapper.FieldMapper;
@ -89,7 +89,7 @@ public class FieldLookup {
if (field == null) {
return null;
}
value = mapper.value(field);
value = mapper.value((Field) field);
return value;
}
@ -101,7 +101,7 @@ public class FieldLookup {
values.clear();
IndexableField[] fields = doc.getFields(mapper.names().indexName());
for (IndexableField field : fields) {
values.add(mapper.value(field));
values.add(mapper.value((Field) field));
}
return values;
}