You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by ot...@apache.org on 2005/11/09 07:44:14 UTC

svn commit: r331964 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/search/FieldCacheImpl.java

Author: otis
Date: Tue Nov  8 22:44:10 2005
New Revision: 331964

URL: http://svn.apache.org/viewcvs?rev=331964&view=rev
Log:
- Applied Yonik's patch from http://issues.apache.org/jira/browse/LUCENE-441

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/CHANGES.txt?rev=331964&r1=331963&r2=331964&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Tue Nov  8 22:44:10 2005
@@ -61,6 +61,10 @@
     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
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java?rev=331964&r1=331963&r2=331964&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java Tue Nov  8 22:44:10 2005
@@ -164,7 +164,7 @@
           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 @@
           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;



Re: svn commit: r331964 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/search/FieldCacheImpl.java

Posted by Otis Gospodnetic <ot...@yahoo.com>.
You are right, I misread the code last night.

Otis

--- Yonik Seeley <ys...@gmail.com> wrote:

> It's actually more than that...
> FieldCacheImpl simply ignored user supplied IntParser and FloatParser
> implementations.
> 
> On 11/9/05, otis@apache.org <ot...@apache.org> wrote:
> > + 8. Minor change in FieldCacheImpl to make it use its own
> IntParser and
> > +    FloatParser inner classes.
> > +    (Yonik Seeley via Otis Gospodnetic)
> 
> -Yonik
> Now hiring -- http://forms.cnet.com/slink?231706
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: svn commit: r331964 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/search/FieldCacheImpl.java

Posted by Yonik Seeley <ys...@gmail.com>.
It's actually more than that...
FieldCacheImpl simply ignored user supplied IntParser and FloatParser
implementations.

On 11/9/05, otis@apache.org <ot...@apache.org> wrote:
> + 8. Minor change in FieldCacheImpl to make it use its own IntParser and
> +    FloatParser inner classes.
> +    (Yonik Seeley via Otis Gospodnetic)

-Yonik
Now hiring -- http://forms.cnet.com/slink?231706

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org