AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.
Docs Menu

MongoDB\Model\IndexInfo::is2dSphere()

버전 1.4에 추가 되었습니다.:

MongoDB\Model\IndexInfo::is2dSphere()

인덱스 가 2dsphere 인덱스 인지 여부를 반환합니다.

function is2dSphere(): boolean

인덱스가 2dsphere 인덱스인지 여부를 나타내는 부울입니다.

<?php
$collection = (new MongoDB\Client)->getCollection('test', 'places');
$collection->createIndex(['pos' => '2dsphere']);
foreach ($collection->listIndexes() as $index) {
if ($index->is2dSphere()) {
printf("%s has 2dsphereIndexVersion: %d\n", $index->getName(), $index['2dsphereIndexVersion']);
}
}

이 경우 출력은 다음과 유사합니다:

pos_2dsphere has 2dsphereIndexVersion: 3