"\"ssl certificate\" authority key"
The $text operator searches for the phrase "ssl certificate" and ("authority" or "key" or "ssl" or "certificate" ).
这是文档里的一个例子,使用\"括起来的叫做Phrases,mongodb为它执行and操作,其他词用空格分割执行or操作。
{"$text": {"$search": "\"ssl certificate\" authority key"}}的搜索结果一定会包含"ssl certificate"。
有没有方法可以对'ssl certificate', 'authority', 'key'实现or的全文搜索呢?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
业精于勤,荒于嬉;行成于思,毁于随。