mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
enable mongo text search
This commit is contained in:
@ -6,8 +6,7 @@ mongod --version
|
||||
|
||||
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||
|
||||
# version 2.6 has this enabled by default
|
||||
#sudo sh -c 'echo "setParameter = textSearchEnabled=true" >> /etc/mongodb.conf'
|
||||
cat /etc/mongodb.conf
|
||||
# enable text search
|
||||
mongo --eval 'db.adminCommand( { setParameter: true, textSearchEnabled : true})'
|
||||
|
||||
#sudo service mongodb restart
|
||||
cat /etc/mongodb.conf
|
||||
|
||||
Reference in New Issue
Block a user