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
|
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||||
|
|
||||||
# version 2.6 has this enabled by default
|
# enable text search
|
||||||
#sudo sh -c 'echo "setParameter = textSearchEnabled=true" >> /etc/mongodb.conf'
|
mongo --eval 'db.adminCommand( { setParameter: true, textSearchEnabled : true})'
|
||||||
cat /etc/mongodb.conf
|
|
||||||
|
|
||||||
#sudo service mongodb restart
|
cat /etc/mongodb.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user