add getDistanceFilter() since you need that in order to sort by the exact distances (previously distanceFilter attr was public)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@801471 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-08-05 23:57:54 +00:00
parent 820620f3a7
commit fc369cdf2f
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,10 @@ public class DistanceQueryBuilder {
return new ChainedFilter(new Filter[] {qf, filter},
ChainedFilter.AND);
}
public DistanceFilter getDistanceFilter() {
return distanceFilter;
}
public Query getQuery(Query query){
return new ConstantScoreQuery(getFilter(query));