Move doc-values classes needed by ST_INTERSECTS to server (#104980)

* Move doc-values classes needed by ST_INTERSECTS to server

This classes are needed by ESQL spatial queries, and are not licensed in a way that prevents this move.
Since they depend on lucene it is not possible to move them to a library.
Instead they are moved to be co-located with the GeoPoint doc-values classes that already exist in server.

* Moved to lucene package org.elasticsearch.lucene.spatial

* Moved Geo/ShapeDocValuesQuery to server because it is Lucene specific

And this gives us access to these classes from ESQL for lucene-pushdown of spatial queries.
This commit is contained in:
Craig Taverner 2024-02-07 15:00:38 +01:00 committed by GitHub
parent 9651cd7e26
commit a58b2c2b05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 310 additions and 240 deletions

View file

@ -434,4 +434,5 @@ module org.elasticsearch.server {
org.elasticsearch.shardhealth,
org.elasticsearch.serverless.shardhealth,
org.elasticsearch.serverless.apifiltering;
exports org.elasticsearch.lucene.spatial;
}