lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r801471 - /lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/DistanceQueryBuilder.java
Date Wed, 05 Aug 2009 23:57:54 GMT
Author: mikemccand
Date: Wed Aug  5 23:57:54 2009
New Revision: 801471

URL: http://svn.apache.org/viewvc?rev=801471&view=rev
Log:
add getDistanceFilter() since you need that in order to sort by the exact distances (previously
distanceFilter attr was public)

Modified:
    lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/DistanceQueryBuilder.java

Modified: lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/DistanceQueryBuilder.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/DistanceQueryBuilder.java?rev=801471&r1=801470&r2=801471&view=diff
==============================================================================
--- lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/DistanceQueryBuilder.java
(original)
+++ lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/DistanceQueryBuilder.java
Wed Aug  5 23:57:54 2009
@@ -116,6 +116,10 @@
     return new ChainedFilter(new Filter[] {qf, filter},
                              ChainedFilter.AND);
   }
+
+  public DistanceFilter getDistanceFilter() {
+    return distanceFilter;
+  }
     
   public Query getQuery(Query query){
     return new ConstantScoreQuery(getFilter(query));



Mime
View raw message