use of org.apache.lucene.spatial.prefix.tree.QuadPrefixTree in project lucene-solr by apache.
the class HeatmapFacetCounterTest method testLucene7291Dateline.
@Test
public void testLucene7291Dateline() throws IOException {
// only 2, and we wind up with some big leaf cells
grid = new QuadPrefixTree(ctx, 2);
strategy = new RecursivePrefixTreeStrategy(grid, getTestClass().getSimpleName());
adoc("0", ctx.makeRectangle(-102, -83, 43, 52));
commit();
// HM crosses dateline
validateHeatmapResultLoop(ctx.makeRectangle(179, -179, 62, 63), 2, 100);
}
use of org.apache.lucene.spatial.prefix.tree.QuadPrefixTree in project lucene-solr by apache.
the class HeatmapFacetCounterTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
cellsValidated = cellValidatedNonZero = 0;
ctx = SpatialContext.GEO;
grid = new QuadPrefixTree(ctx, randomIntBetween(1, 8));
strategy = new RecursivePrefixTreeStrategy(grid, getTestClass().getSimpleName());
if (rarely()) {
((PrefixTreeStrategy) strategy).setPointsOnly(true);
}
}
Aggregations