Skip to content

DOCS-1254 powerOf2 textindex and DOCS-1247 geoWithin in agg #740

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
3 changes: 3 additions & 0 deletions source/core/indexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,9 @@ the supported languages.
``text`` indexes have the following storage requirements and
performance costs:

- Text indexes change the space allocation method for the documents in
the collection to :collflag:`usePowerOf2Sizes`.

- Text indexes can be large. They contain one index entry for each
unique post-stemmed word in each indexed field for each document
inserted.
Expand Down
2 changes: 1 addition & 1 deletion source/reference/aggregation/match.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $match (aggregation)

.. versionadded:: 2.4
:pipeline:`$match` queries can support the
geospatial :mongodb:operator:`$within` operations.
geospatial :mongodb:operator:`$geoWithin` operations.

.. warning::

Expand Down
5 changes: 4 additions & 1 deletion source/reference/operator/geoWithin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,8 @@ $geoWithin
.. operator:: $within

.. deprecated:: 2.4
In 2.4, :operator:`$geoWithin` replaces :operator:`$within`.
:operator:`$geoWithin` replaces :operator:`$within` in MongoDB 2.4.
Additionally, :operator:`$within` no longer require a geospatial
index. However, geospatial indexes support much faster queries
than the unindexed equivalents.

14 changes: 10 additions & 4 deletions source/release-notes/2.4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ query operator for queries on GeoJSON data:

The operators use the new :operator:`$geometry` parameter.

The :operator:`$within` operator has been deprecated. Use
:operator:`$geoWithin` instead. Additionally, if using
:operator:`$within`, applications can use the :operator:`$within`
operator without a geospatial index. However, geospatial indexes
support much faster queries.

For more information, see:

- :doc:`/applications/geospatial-indexes`
Expand Down Expand Up @@ -466,9 +472,12 @@ MongoDB 2.4 introduces a number of additional functionality and
improved performance for the :doc:`Aggregation Framework
</applications/aggregation>`. Consider the following additions in 2.4:

- :agg:pipeline:`$match` queries now support the :operator:`$within`
- :agg:pipeline:`$match` queries now support the :operator:`$geoWithin`
operator for bounded geospatial queries.

- The new :agg:pipeline:`$geoNear` pipeline stage to support
geospatial queries.

- :agg:group:`$min` operator only considers non-null and existing field
values. If all the values for a field are ``null`` or are missing,
the operator returns ``null`` for the minimum value.
Expand All @@ -482,6 +491,3 @@ improved performance for the :doc:`Aggregation Framework
portion of a date.

- The new :agg:expression:`$concat` operator concatenates array of strings.

- The new :agg:pipeline:`$geoNear` pipeline stage to supports
geospatial queries.