From 495e885eee5ccb1eacdf46309d6eca8c470f8fa8 Mon Sep 17 00:00:00 2001 From: Otis Gospodnetic Date: Wed, 9 Nov 2005 06:44:10 +0000 Subject: [PATCH] - Applied Yonik's patch from http://issues.apache.org/jira/browse/LUCENE-441 git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@331964 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 4 ++++ src/java/org/apache/lucene/search/FieldCacheImpl.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 2f88800e361..b2428348513 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -61,6 +61,10 @@ Changes in runtime behavior See FSDirectory for getter/setter methods: disableLuceneLocks (Daniel Naber) + + 8. Minor change in FieldCacheImpl to make it use its own IntParser and + FloatParser inner classes. + (Yonik Seeley via Otis Gospodnetic) New features diff --git a/src/java/org/apache/lucene/search/FieldCacheImpl.java b/src/java/org/apache/lucene/search/FieldCacheImpl.java index af8e6613562..9e804f1450c 100644 --- a/src/java/org/apache/lucene/search/FieldCacheImpl.java +++ b/src/java/org/apache/lucene/search/FieldCacheImpl.java @@ -164,7 +164,7 @@ implements FieldCache { do { Term term = termEnum.term(); if (term.field() != field) break; - int termval = Integer.parseInt (term.text()); + int termval = parser.parseInt(term.text()); termDocs.seek (termEnum); while (termDocs.next()) { retArray[termDocs.doc()] = termval; @@ -204,7 +204,7 @@ implements FieldCache { do { Term term = termEnum.term(); if (term.field() != field) break; - float termval = Float.parseFloat (term.text()); + float termval = parser.parseFloat(term.text()); termDocs.seek (termEnum); while (termDocs.next()) { retArray[termDocs.doc()] = termval;