Skip to content

DOCS-1454 add replace directives to a geospatial include #926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/includes/note-geospatial-index-must-exist.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. versionchanged:: 2.2.3
Applications can use this operator *without* having a geospatial
Applications can use |operator| *without* having a geospatial
index. However, geospatial indexes support much faster queries than
the unindexed equivalents. Before 2.2.3, a geospatial index *must*
exist on a field holding coordinates before using any of the
Expand Down
2 changes: 2 additions & 0 deletions source/reference/operator/box.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ $box
[ [ 0 , 0 ] ,
[ 100 , 100 ] ] } } } )

.. |operator| replace:: :operator:`$box`

.. include:: /includes/note-geospatial-index-must-exist.rst
2 changes: 2 additions & 0 deletions source/reference/operator/center.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ $center
{ $center : [ [-74, 40.74], 10 ] }
} } )

.. |operator| replace:: :operator:`$center`

.. include:: /includes/note-geospatial-index-must-exist.rst
2 changes: 2 additions & 0 deletions source/reference/operator/centerSphere.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ $centerSphere
[ [ 88 , 30 ] , 10 / 3959 ]
} } } )

.. |operator| replace:: :operator:`$centerSphere`

.. include:: /includes/note-geospatial-index-must-exist.rst
2 changes: 2 additions & 0 deletions source/reference/operator/polygon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ $polygon
[ 3 , 6 ] ,
[ 6 , 0 ] ] } } } )

.. |operator| replace:: :operator:`$polygon`

.. include:: /includes/note-geospatial-index-must-exist.rst