@@ 417-420 (lines=4) @@ | ||
414 | return false; |
|
415 | } |
|
416 | ||
417 | if (isset($mongoIndex[$option], $documentIndexOptions[$option]) && |
|
418 | $mongoIndex[$option] !== $documentIndexOptions[$option]) { |
|
419 | return false; |
|
420 | } |
|
421 | } |
|
422 | ||
423 | if (empty($mongoIndex['partialFilterExpression']) xor empty($documentIndexOptions['partialFilterExpression'])) { |
|
@@ 439-442 (lines=4) @@ | ||
436 | foreach (['default_language', 'language_override', 'textIndexVersion'] as $option) { |
|
437 | /* Text indexes will always report defaults for these options, so |
|
438 | * only compare if we have explicit values in the document index. */ |
|
439 | if (isset($mongoIndex[$option], $documentIndexOptions[$option]) && |
|
440 | $mongoIndex[$option] !== $documentIndexOptions[$option]) { |
|
441 | return false; |
|
442 | } |
|
443 | } |
|
444 | ||
445 | return true; |