Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB - textSearchEnabled - specify in config file

Tags:

mongodb

http://docs.mongodb.org/manual/tutorial/enable-text-search/

This doc says, we can specify this in the configuration file

You can enable the text search feature at startup with the textSearchEnabled parameter:

mongod --setParameter textSearchEnabled=true

You may prefer to set the textSearchEnabled parameter in the configuration file.

I tried to specify this in the configuration file like this:

textSearchEnabled=true

But it didnt work. Does anyone know the correct syntax for this?

like image 379
rubyprince Avatar asked May 10 '13 10:05

rubyprince


People also ask

Which parameter in MongoDB output is used to store config file?

dbPath is /var/lib/mongodb; this setting specifies where MongoDB should store its files. systemLog. path is /var/log/mongodb/mongod. log; this is the path where mongod will write its output.


1 Answers

setParameter=textSearchEnabled=true
like image 50
Abhishek Kumar Avatar answered Oct 07 '22 01:10

Abhishek Kumar