- Indexes >
- Indexing Tutorials >
- Text Search Tutorials >
- Enable Text Search
Enable Text Search¶
New in version 2.4.
The text search is currently a beta feature. As a beta feature:
- You need to explicitly enable the feature before creating a text
index or using the
text
command. - To enable text search on replica sets and
sharded clusters, you need to
enable on each and every
mongod
for replica sets and on each and everymongos
for sharded clusters.
Warning
- Do not enable or use text search on production systems.
- Text indexes have significant storage requirements and performance costs. See Storage Requirements and Performance Costs for more information.
You can enable the text search feature at startup with the
textSearchEnabled
parameter:
You may prefer to set the textSearchEnabled
parameter in the
configuration file.
Additionally, you can enable the feature in the mongo
shell
with the setParameter
command. This command does not
propagate from the primary to the secondaries. You must enable on
each and every mongod
for replica sets.
Note
You must set the parameter every time you start the server. You may prefer to add the parameter to the configuration files.