diff --git a/core/src/main/java/org/elasticsearch/index/fielddata/ordinals/GlobalOrdinalsBuilder.java b/core/src/main/java/org/elasticsearch/index/fielddata/ordinals/GlobalOrdinalsBuilder.java index e69ba4f4d0b..2fa4476c0d9 100644 --- a/core/src/main/java/org/elasticsearch/index/fielddata/ordinals/GlobalOrdinalsBuilder.java +++ b/core/src/main/java/org/elasticsearch/index/fielddata/ordinals/GlobalOrdinalsBuilder.java @@ -37,6 +37,7 @@ import org.elasticsearch.indices.breaker.CircuitBreakerService; import java.io.IOException; import java.util.Collection; import java.util.Collections; +import java.util.concurrent.TimeUnit; /** * Utility class to build global ordinals. @@ -63,10 +64,10 @@ public enum GlobalOrdinalsBuilder { if (logger.isDebugEnabled()) { logger.debug( - "Global-ordinals[{}][{}] took {} ms", + "global-ordinals [{}][{}] took [{}]", indexFieldData.getFieldName(), ordinalMap.getValueCount(), - TimeValue.nsecToMSec(System.nanoTime() - startTimeNS) + new TimeValue(System.nanoTime() - startTimeNS, TimeUnit.NANOSECONDS) ); } return new InternalGlobalOrdinalsIndexFieldData(indexSettings, indexFieldData.getFieldName(), diff --git a/core/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildIndexFieldData.java b/core/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildIndexFieldData.java index d0e2290c0a9..caeb92a7d44 100644 --- a/core/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildIndexFieldData.java +++ b/core/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildIndexFieldData.java @@ -209,7 +209,7 @@ public class ParentChildIndexFieldData extends AbstractIndexFieldData