use of org.apache.jena.query.spatial.SpatialIndexLucene in project jena by apache.
the class TestSpatialDatasetAssembler method testSimpleDatasetAssembler.
@Test
public void testSimpleDatasetAssembler() {
Dataset dataset = (Dataset) Assembler.general.open(spec1);
assertTrue(dataset.getContext().get(SpatialQuery.spatialIndex) instanceof SpatialIndexLucene);
}
use of org.apache.jena.query.spatial.SpatialIndexLucene in project jena by apache.
the class TestSpatialIndexLuceneAssembler method testIndexHasEntityMap.
@Test
public void testIndexHasEntityMap() {
SpatialIndexLucene indexLucene = (SpatialIndexLucene) Assembler.general.open(SIMPLE_LUCENE_INDEX_SPEC);
assertEquals("uri", indexLucene.getDocDef().getEntityField());
assertEquals("geo", indexLucene.getDocDef().getGeoField());
}
Aggregations