* Try to extract value from String using FieldMapper when reading from the transaction log.
This commit is contained in:
parent
4d607bdd4a
commit
6403a42e31
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue