-
Enhancement
-
Resolution: Duplicate
-
Blocker
-
None
-
11.0.4.Final
-
None
-
None
-
Undefined
Due to the API changes from Infinispan 9 to Infinispan 11, it seems to me that it is no longer possible to use Infinispan to query a spatial index. In version 9, I was using the following code to query a large number of weather forecasts generated by a weather simulation:
QueryBuilder qb = manager.buildQueryBuilderForClass(WeatherForecastContainer.class).get();
Query query = qb.spatial().within(50, Unit.KM)
{{ .ofLatitude(location.getLatitude()).andLongitude(location.getLongitude())}}
{{ .createQuery();}}
...
manager.getQuery(query, WeatherForecastContainer.class).maxResults(limit).sort(order).list()
...
This works great, even for a global simulation model with several million entries. However, the documentation in version 11 refers to Ickle queries as the new approach for building queries but as far as I understand it, they do not provide any construct for spatial queries. If this is correct, version 11 effectively removes support for spatial data. Is this intentional or am I missing something?