Skip to content

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
.. 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!


- 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