elasticsearch/docs/reference/esql/functions/examples
Craig Taverner a7b38394d9
ESQL: Support ST_DISJOINT (#107007)
* WIP Started developing ST_DISJOINT

Initially based on ST_INTERSECTS

* Fix functions list and add spatial point integration tests

* Update docs/changelog/107007.yaml

* More tests for shapes and cartesian-multigeoms

* Some more tests to highlight issues with DISJOINT on cartesian point indices

* Disable Lucene push-down for DISJOINT on cartesian point indices

* Added docs for ST_DISJOINT

* Support DISJOINT in the lucene-pushdown code for cartesian point indexes

* Re-enable push-to-source for DISJOINT on cartesian_point indices

* Fix docs example

* Try fix internal docs links which are not being rendered

* Fixed disjoint on empty geometry

* Added tests on empty linestring, and changed lucene push-down to exception

In lucene code only LineString can be empty, but in Elasticsearch even that is not allowed, resulting in parsing errors. So we cannot get to this code in the lucene push-down and now throw an error instead. The tests now assert on the warnings.

Note that for any predicate DISJOINT and INTERSECTS alike, the predicate fails, because the parsing error results in null, the function returns null, the predicate interprets this as false, and no documents match. This null-in-null-out rule means that DISJOINT and INTERSECTS give the same answer on invalid geometries.
2024-04-08 12:26:26 +02:00
..
abs.asciidoc ESQL: Generate a few more docs (#106577) 2024-03-21 10:51:35 -04:00
acos.asciidoc ESQL: Generate a few more docs (#106577) 2024-03-21 10:51:35 -04:00
asin.asciidoc ESQL: Generate a few more docs (#106577) 2024-03-21 10:51:35 -04:00
atan.asciidoc ESQL: Generate a few more docs (#106577) 2024-03-21 10:51:35 -04:00
atan2.asciidoc ESQL: Generate a few more docs (#106577) 2024-03-21 10:51:35 -04:00
ceil.asciidoc ESQL: Generate docs for ceil (#106616) 2024-03-21 13:01:15 -04:00
coalesce.asciidoc ESQL: Generate a few more docs (#106577) 2024-03-21 10:51:35 -04:00
cos.asciidoc ESQL: Generate docs for the trig functions (#106891) 2024-03-29 12:24:31 -04:00
cosh.asciidoc ESQL: Generate docs for the trig functions (#106891) 2024-03-29 12:24:31 -04:00
left.asciidoc ESQL: Generate a few more docs (#106577) 2024-03-21 10:51:35 -04:00
log.asciidoc ESQL: Fixup docs for LOG and LOG10 (#106963) 2024-04-03 09:46:32 -04:00
log10.asciidoc ESQL: Fixup docs for LOG and LOG10 (#106963) 2024-04-03 09:46:32 -04:00
signum.asciidoc Add ES|QL signum function (#106866) 2024-04-04 09:48:35 +02:00
sin.asciidoc ESQL: Generate docs for the trig functions (#106891) 2024-03-29 12:24:31 -04:00
sinh.asciidoc ESQL: Generate docs for the trig functions (#106891) 2024-03-29 12:24:31 -04:00
st_contains.asciidoc ESQL: Support ST_CONTAINS and ST_WITHIN (#106503) 2024-04-02 10:31:00 +02:00
st_disjoint.asciidoc ESQL: Support ST_DISJOINT (#107007) 2024-04-08 12:26:26 +02:00
st_intersects.asciidoc ESQL: Support ST_CONTAINS and ST_WITHIN (#106503) 2024-04-02 10:31:00 +02:00
st_within.asciidoc ESQL: Support ST_CONTAINS and ST_WITHIN (#106503) 2024-04-02 10:31:00 +02:00
tan.asciidoc ESQL: Generate docs for the trig functions (#106891) 2024-03-29 12:24:31 -04:00
tanh.asciidoc ESQL: Generate docs for the trig functions (#106891) 2024-03-29 12:24:31 -04:00