Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我从 mongo 控制台搜索我的 mongodb 时,它工作得很好。像这样:
db.collection.runCommand("text", {search: "myterm"})
但是,当我使用 PHP mongodb 驱动程序执行相同的搜索时,我经常得到较少的结果:
$r = $d->command(array("text" => "collection", 'search' => "myterm" )); print_r($r);
有什么想法吗?
道歉,我的错。
我排除了第一行,认为它们是 php 中的标题,而实际上它们不是。