mirror of https://github.com/apache/lucene.git
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:
parent
820620f3a7
commit
fc369cdf2f
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue