Skip to content

cleanup text search #809

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
18 changes: 0 additions & 18 deletions source/applications.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,3 @@ The following documents provide patterns for developing application features:
tutorial/create-an-auto-incrementing-field
tutorial/limit-number-of-elements-in-updated-array
tutorial/expire-data

Text Search Patterns
--------------------

The following tutorials provide some patterns for
text search usage:

.. toctree::
:maxdepth: 1

tutorial/enable-text-search
tutorial/search-for-text
tutorial/create-text-index-on-multi-language-collection
tutorial/return-text-queries-using-only-text-index
tutorial/limit-number-of-items-scanned-for-text-search



43 changes: 25 additions & 18 deletions source/core/text-search.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ matching documents as determined by the scores.
search. See :doc:`/tutorial/enable-text-search` for information on
how to enable the text search feature.

.. toctree::
:hidden:

/tutorial/enable-text-search

.. _text-search-storage-requirements:

Storage Requirements and Performance Costs
Expand Down Expand Up @@ -83,27 +88,19 @@ the string literal ``text``.

- .. include:: /includes/fact-text-index-limit-one.rst

The following tutorials offer additional ``text`` index creation
The following tutorials offer examples on ``text`` index creation
patterns:

- :doc:`/tutorial/create-text-index-on-multiple-fields`

- :doc:`/tutorial/specify-language-for-text-index`

- :doc:`/tutorial/avoid-text-index-name-limit`

- :doc:`/tutorial/create-text-index-on-multi-language-collection`

- :doc:`/tutorial/control-results-of-text-search`
.. toctree::
:titlesonly:

Additionally, MongoDB permits :ref:`compound indexes
<index-type-compound>` that include ``text`` index fields in
combination with ascending/descending index fields. For more
information, see:

- :doc:`/tutorial/limit-number-of-items-scanned-for-text-search`

- :doc:`/tutorial/return-text-queries-using-only-text-index`
/tutorial/create-text-index-on-multiple-fields
/tutorial/specify-language-for-text-index
/tutorial/avoid-text-index-name-limit
/tutorial/create-text-index-on-multi-language-collection
/tutorial/control-results-of-text-search
/tutorial/limit-number-of-items-scanned-for-text-search
/tutorial/return-text-queries-using-only-text-index

.. _text-search-text-command:

Expand All @@ -119,10 +116,20 @@ document field contains the word ``blueberry``, a search on the term
For information and examples on various text search patterns, see
:doc:`/tutorial/search-for-text`.

.. toctree::
:hidden:

/tutorial/search-for-text

Text Search Output
------------------

The :dbcommand:`text` command returns a document that contains the
result set.

See :ref:`text-search-output` for information on the output.

.. toctree::
:hidden:

/reference/text-search
12 changes: 3 additions & 9 deletions source/indexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@ Text Indexing
``text`` indexes were added in 2.4 as a beta feature.

.. toctree::
:maxdepth: 1
:maxdepth: 2

/core/text-search

core/text-search
tutorial/create-text-index-on-multiple-fields
tutorial/specify-language-for-text-index
tutorial/avoid-text-index-name-limit
tutorial/create-text-index-on-multi-language-collection
tutorial/control-results-of-text-search
tutorial/limit-number-of-items-scanned-for-text-search
tutorial/return-text-queries-using-only-text-index
1 change: 0 additions & 1 deletion source/reference.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ General Reference

reference/limits
reference/mongodb-extended-json
reference/text-search
reference/database-references
reference/glossary

Expand Down