Limitations

The WHERE clause of a nearest-neighbor query cannot include:
  • Clauses connected by OR
  • Clauses connected by AND NOT

Only one nearest-neighbor function can be used per query.

Using a fragmented R-tree index for nearest-neighbor queries raises an error. The results are not returned in nearest-distance order because the query is executed on each separate index fragment, and results from each fragment are combined in an unspecified order.