mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
Properly handle multi fields in block loaders with synthetic source enabled (#127483)
This commit is contained in:
parent
ac6c7a958d
commit
0c1b3acee2
23 changed files with 538 additions and 305 deletions
|
@ -378,7 +378,8 @@ public class ScaledFloatFieldMapper extends FieldMapper {
|
|||
if (hasDocValues() && (blContext.fieldExtractPreference() != FieldExtractPreference.STORED || isSyntheticSource)) {
|
||||
return new BlockDocValuesReader.DoublesBlockLoader(name(), l -> l / scalingFactor);
|
||||
}
|
||||
if (isSyntheticSource) {
|
||||
// Multi fields don't have fallback synthetic source.
|
||||
if (isSyntheticSource && blContext.parentField(name()) == null) {
|
||||
return new FallbackSyntheticSourceBlockLoader(fallbackSyntheticSourceBlockLoaderReader(), name()) {
|
||||
@Override
|
||||
public Builder builder(BlockFactory factory, int expectedCount) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue