Skip to content

Commit c0ec26a

Browse files
committed
Use correct block stored fields reader
1 parent 64026c2 commit c0ec26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mapper-extras/src/main/java/org/elasticsearch/index/mapper/extras/MatchOnlyTextFieldMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public Query phrasePrefixQuery(TokenStream stream, int slop, int maxExpansions,
364364
@Override
365365
public BlockLoader blockLoader(BlockLoaderContext blContext) {
366366
if (textFieldType.isSyntheticSource()) {
367-
return new BlockStoredFieldsReader.BytesFromStringsBlockLoader(storedFieldNameForSyntheticSource());
367+
return new BlockStoredFieldsReader.BytesFromBytesRefsBlockLoader(storedFieldNameForSyntheticSource());
368368
}
369369
SourceValueFetcher fetcher = SourceValueFetcher.toString(blContext.sourcePaths(name()));
370370
// MatchOnlyText never has norms, so we have to use the field names field

0 commit comments

Comments
 (0)