Skip to content

Instantly share code, notes, and snippets.

@nishantsingh1
Last active March 16, 2017 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishantsingh1/6d3008f649d0eb7155d3e65f663b9657 to your computer and use it in GitHub Desktop.
Save nishantsingh1/6d3008f649d0eb7155d3e65f663b9657 to your computer and use it in GitHub Desktop.
Geospatial query for a cylindrical search
cts:search(doc(),
cts:and-query(
(
cts:element-pair-geospatial-query(xs:QName("location"), xs:QName("lat"), xs:QName("long"), cts:circle(1000, cts:point(37.655983, -122.425525))),
cts:element-range-query(xs:QName("alt"), "<", 4)
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment