index entry, after the fields that
partition it:
.near(field, origin, { distance })ranks facts by distance fromorigin. Each hit is{ fact, score }, withscorethe distance in metres;distancecaps it..region(field, area, { relation, distance })selects the facts whose geometry relates toarea:"intersects"by default, or"within","coveredBy","covers","contains","disjoint","equals","touches","crosses"or"overlaps". Withdistance, it selects the facts within that many metres ofarea.- Both are always bounded by
.first(n). The.wherefields must fix the index’s partition fields.
watch or useWatch re-runs it when a write lands in what it read.
This is a spatial index over geometry. For embedding vectors see
Ranked indexes.