diff --git a/src/java/org/apache/lucene/search/ExtendedFieldCache.java b/src/java/org/apache/lucene/search/ExtendedFieldCache.java index 813e26c1879..50a118f1bbd 100644 --- a/src/java/org/apache/lucene/search/ExtendedFieldCache.java +++ b/src/java/org/apache/lucene/search/ExtendedFieldCache.java @@ -41,7 +41,7 @@ public interface ExtendedFieldCache extends FieldCache { public double parseDouble(String string); } - public static ExtendedFieldCache EXT_DEFAULT = new ExtendedFieldCacheImpl(); + public static ExtendedFieldCache EXT_DEFAULT = (ExtendedFieldCache)FieldCache.DEFAULT; /** * Checks the internal cache for an appropriate entry, and if none is diff --git a/src/java/org/apache/lucene/search/FieldCache.java b/src/java/org/apache/lucene/search/FieldCache.java index a852c596e17..fcfbf45875c 100644 --- a/src/java/org/apache/lucene/search/FieldCache.java +++ b/src/java/org/apache/lucene/search/FieldCache.java @@ -127,7 +127,7 @@ public interface FieldCache { } /** Expert: The cache used internally by sorting and range query classes. */ - public static FieldCache DEFAULT = new FieldCacheImpl(); + public static FieldCache DEFAULT = new ExtendedFieldCacheImpl(); /** Checks the internal cache for an appropriate entry, and if none is * found, reads the terms in field as a single byte and returns an array