Skip to content

Commit 3619db7

Browse files
committed
Only add IP dimensions if RoutingFields is not a noop
1 parent 7da8667 commit 3619db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/mapper/IpFieldMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ protected void parseCreateField(DocumentParserContext context) throws IOExceptio
678678
}
679679

680680
private void indexValue(DocumentParserContext context, InetAddress address) {
681-
if (dimension) {
681+
if (dimension && context.getRoutingFields().isNoop() == false) {
682682
context.getRoutingFields().addIp(fieldType().name(), address);
683683
}
684684
if (indexed) {

0 commit comments

Comments
 (0)