* Try to extract value from String using FieldMapper when reading from the transaction log.

This commit is contained in:
Jeremie BORDIER 2011-11-17 17:49:23 +01:00 committed by Shay Banon
parent 4d607bdd4a
commit 6403a42e31
1 changed files with 5 additions and 0 deletions

View File

@ -302,7 +302,12 @@ public class ShardGetService extends AbstractIndexShardComponent {
searchLookup = new SearchLookup(mapperService, indexCache.fieldData());
searchLookup.source().setNextSource(SourceLookup.sourceAsMap(source.source.bytes(), source.source.offset(), source.source.length()));
}
FieldMapper<?> x = docMapper.mappers().smartNameFieldMapper(field);
value = searchLookup.source().extractValue(field);
if (x != null && value instanceof String) {
value = x.valueFromString((String)value);
}
}
}
if (value != null) {