if (limit <= 0)
limit = MAX_N;
IndexSearcher indexSearcher = new IndexSearcher(indexReader);
Point pt = shape.getCenter();
ValueSource valueSource = strategy.makeDistanceValueSource(pt);// the
// distance
// (in
// degrees)
Sort distSort = new Sort(valueSource.getSortField(false))
.rewrite(indexSearcher);
SpatialArgs args = new SpatialArgs(operation, shape);
args.setDistErr(0.0);
Filter filter = strategy.makeFilter(args);
TopDocs docs = indexSearcher.search(new MatchAllDocsQuery(), filter,