Skip to content

DOCS-14756: minor fixes to multikey-index-bounds.txt and index-wildcard.txt #5722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 25, 2021

Conversation

RafaelGreen1
Copy link
Contributor

No description provided.

bounds for predicate are arrays of arrays
products --> employees
@RafaelGreen1 RafaelGreen1 changed the title minor fixes to multikey-index-bounds.txt and index-wildcard.txt DOCS-14756: minor fixes to multikey-index-bounds.txt and index-wildcard.txt Aug 23, 2021
@@ -439,15 +439,15 @@ Consider the following wildcard index on the ``employees`` collection:

.. code-block:: javascript

db.products.createIndex( { "$**" : 1 } )
db.employees.createIndex( { "$**" : 1 } )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this fix!

@@ -349,10 +349,10 @@ field ``ratings`` to require that the array contains at least one

Taking the predicates separately:

- the bounds for the ``score: { $lte: 5 }`` predicate is ``[ -Infinity, 5
]``;
- the bounds for the ``score: { $lte: 5 }`` predicate are ``[ [ -Infinity, 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with changing "is" to "are", but what is the motivation for the double square brackets?

Copy link
Contributor Author

@RafaelGreen1 RafaelGreen1 Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears like this in all other places on this page. Search "[ [" to see the other occurrences.
It makes sense to me because bounds are arrays of arrays. For example [ [1,3], [8,10] ]

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thank you for clarifying! You're absolutely correct.

@jeff-allen-mongo jeff-allen-mongo merged commit cdc82a9 into mongodb:master Aug 25, 2021
@jeff-allen-mongo
Copy link
Collaborator

Thank you @RafaelGreen1 ! Merged this update in.

mongo-cr-bot pushed a commit that referenced this pull request Jan 4, 2024
* DOCS-15451 Fixes table widths

* adjusts width

* Adjusts table width

* Test containerfiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants