对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

MongoDB\Model\IndexInfo::getVersion()

MongoDB\Model\IndexInfo::getVersion()

返回索引版本。

function getVersion(): integer

索引版本。

<?php $info = new IndexInfo([ 'v' => 1,]); var_dump($info->getVersion());

而输出将类似如下所示:

int(1)
给本页内容打分