2013-05-10 82 views
11

http://docs.mongodb.org/manual/tutorial/enable-text-search/的MongoDB - textSearchEnabled - 指定配置文件

該醫生說,我們可以在配置文件中指定該

您可以在與 textSearchEnabled參數啓動啓用文本搜索功能:

的mongod --setParameter textSearchEnabled =真

遊馬y更喜歡在 configuration file中設置textSearchEnabled參數。

我想這樣的配置文件中指定此:

textSearchEnabled=true 

但它沒有工作。有誰知道這個正確的語法?

回答

22
setParameter=textSearchEnabled=true 
+0

謝謝,這個工程。 – rubyprince 2013-05-10 13:53:02

+0

對於任何感興趣的人,在http://docs.mongodb.org/manual/reference/configuration-options/#setParameter – rubyprince 2013-05-10 14:06:11

+1

中有詳細說明,Mongo文檔aka「規範」對於語法還不太清楚。沒有上面的例子,我不會知道如何正確的語法。 – Kay 2014-06-30 11:16:44