lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/search SortComparator.java
Date Thu, 30 Sep 2004 19:20:16 GMT
dnaber      2004/09/30 12:20:16

  Modified:    src/java/org/apache/lucene/search Tag: lucene_1_4_2_dev
                        SortComparator.java
  Log:
  second part of Christoph's fix for bug #31240
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.2.1   +2 -2      jakarta-lucene/src/java/org/apache/lucene/search/SortComparator.java
  
  Index: SortComparator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/SortComparator.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- SortComparator.java	10 Jul 2004 06:19:01 -0000	1.2
  +++ SortComparator.java	30 Sep 2004 19:20:16 -0000	1.2.2.1
  @@ -29,8 +29,8 @@
     public ScoreDocComparator newComparator (final IndexReader reader, final String fieldname)
     throws IOException {
       final String field = fieldname.intern();
  +    final Comparable[] cachedValues = FieldCache.DEFAULT.getCustom (reader, field, SortComparator.this);
       return new ScoreDocComparator() {
  -      protected Comparable[] cachedValues = FieldCache.DEFAULT.getCustom (reader, field,
SortComparator.this);
   
         public int compare (ScoreDoc i, ScoreDoc j) {
           return cachedValues[i.doc].compareTo (cachedValues[j.doc]);
  
  
  

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


Mime
View raw message