Skip to content

Commit befffa9

Browse files
committed
delay
1 parent 4f18865 commit befffa9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/src/main/java/org/elasticsearch/action/index/IndexRequest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,11 @@ public int route(IndexRouting indexRouting) {
973973
if (modernSource.isStructured()) {
974974
// TODO: Need to implement filtering
975975
// return indexRouting.indexShard(id, routing, contentType, structuredSource);
976-
return indexRouting.indexShard(id, routing, contentType, source());
976+
if (indexRouting instanceof IndexRouting.ExtractFromSource) {
977+
return indexRouting.indexShard(id, routing, contentType, source());
978+
} else {
979+
return indexRouting.indexShard(id, routing, contentType, (BytesReference) null);
980+
}
977981
} else {
978982
return indexRouting.indexShard(id, routing, contentType, source());
979983
}

0 commit comments

Comments
 (0)