lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1468222 - in /lucene/dev/branches/branch_4x/lucene: CHANGES.txt queries/src/java/org/apache/lucene/queries/function/ValueSource.java queries/src/test/org/apache/lucene/queries/function/TestFunctionQuerySort.java
Date Mon, 15 Apr 2013 20:47:14 GMT
Author: rmuir
Date: Mon Apr 15 20:47:14 2013
New Revision: 1468222

URL: http://svn.apache.org/r1468222
Log:
LUCENE-4504: Fix broken sort comparator in ValueSource.getSortField, used when sorting by
a function query

Added:
    lucene/dev/branches/branch_4x/lucene/queries/src/test/org/apache/lucene/queries/function/TestFunctionQuerySort.java
  (props changed)
      - copied unchanged from r1468217, lucene/dev/trunk/lucene/queries/src/test/org/apache/lucene/queries/function/TestFunctionQuerySort.java
Modified:
    lucene/dev/branches/branch_4x/lucene/CHANGES.txt
    lucene/dev/branches/branch_4x/lucene/queries/src/java/org/apache/lucene/queries/function/ValueSource.java

Modified: lucene/dev/branches/branch_4x/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/CHANGES.txt?rev=1468222&r1=1468221&r2=1468222&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/lucene/CHANGES.txt Mon Apr 15 20:47:14 2013
@@ -271,6 +271,9 @@ Bug Fixes
   BoostingQuery, MoreLikeThisQuery, FuzzyLikeThisQuery, and block join queries.
   (Robert Muir, Uwe Schindler)
 
+* LUCENE-4504: Fix broken sort comparator in ValueSource.getSortField,
+  used when sorting by a function query.  (Tom Shally via Robert Muir)
+
 Documentation
 
 * LUCENE-4841: Added example SimpleSortedSetFacetsExample to show how
@@ -837,9 +840,6 @@ Bug Fixes
   romaji even for out-of-vocabulary kana cases (e.g. half-width forms).
   (Robert Muir)
 
-* LUCENE-4504: Fix broken sort comparator in ValueSource.getSortField,
-  used when sorting by a function query.  (Tom Shally via Robert Muir)
-
 * LUCENE-4511: TermsFilter might return wrong results if a field is not 
   indexed or doesn't exist in the index. (Simon Willnauer)
 

Modified: lucene/dev/branches/branch_4x/lucene/queries/src/java/org/apache/lucene/queries/function/ValueSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/queries/src/java/org/apache/lucene/queries/function/ValueSource.java?rev=1468222&r1=1468221&r2=1468222&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/queries/src/java/org/apache/lucene/queries/function/ValueSource.java
(original)
+++ lucene/dev/branches/branch_4x/lucene/queries/src/java/org/apache/lucene/queries/function/ValueSource.java
Mon Apr 15 20:47:14 2013
@@ -191,7 +191,7 @@ public abstract class ValueSource {
       if (docValue < value) {
         return -1;
       } else if (docValue > value) {
-        return -1;
+        return 1;
       } else {
         return 0;
       }



Mime
View raw message