Skip to content

Conversation

WaVEV
Copy link
Collaborator

@WaVEV WaVEV commented Aug 15, 2025

No description provided.

@WaVEV WaVEV force-pushed the atlas-search-docs-rework branch from 85e19a1 to 0fcd033 Compare August 15, 2025 03:48
@WaVEV WaVEV requested a review from timgraham August 17, 2025 18:51
@WaVEV WaVEV marked this pull request as ready for review August 17, 2025 18:51
Comment on lines 49 to 50
- ``path`` (``str`` or :class:`~django.db.models.F`): The document path
to the field.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we concluded there is no advantage to passing an F (really the semantics are incorrect since F("column") is supposed to refer to the value of the column rather than the column itself.) Even if this is what's done behind the scenes, there's no reason to suggest the user should do this.

Comment on lines 51 to 53
- ``value`` (``bool``, :class:`~bson.objectid.ObjectId`, ``int``,
:class:`~datetime.datetime`, ``str``, :class:`~uuid.UUID`, ``None``, or
:class:`~django.db.models.Value`): The value to match.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't find this typing documentation very attractive. Basically, the expected type is based on the value of the field. I think it's intuitive without this long list.

- ``path`` (``str`` or :class:`~django.db.models.F`): The document path
to the field.
- ``query`` (``str``, :class:`~django.db.models.Value`): The value to match.
- ``fuzzy`` (:class:`~typing.Optional`\[:class:`~typing.Dict`\]): Fuzzy
Copy link
Collaborator

Choose a reason for hiding this comment

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

Similarly, I'm used to reading "A dictionary" rather than "Optiona[Dict]". The former just seems friendlier to me. I guess it's a matter of preference, but my vote is to follow Django's style.

Comment on lines 298 to 292
terms matching a pattern with ``*`` (any sequence of characters) and ``?``
(any single character) wildcards.
Copy link
Collaborator

Choose a reason for hiding this comment

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

You've rewrapped some lines that according to my calculations were 79 characters in length. That's the limit, not 78. :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🤔 the spacebar counts as 1.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Which space are you referring to?

>>> len("terms matching a pattern with ``*`` (any sequence of characters) and ``?`` (any")
79

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

mmh I counted it wrongly

@WaVEV WaVEV force-pushed the atlas-search-docs-rework branch 4 times, most recently from 7659e07 to 4897344 Compare August 25, 2025 23:16
Comment on lines 295 to 296
- ``match_criteria``: Whether to match ``"all"`` or ``"any"`` terms (defaults
to Atlas Search behavior).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Inadvertently deleted?


Combinable expressions
----------------------
``Combinable expressions``
Copy link
Collaborator

Choose a reason for hiding this comment

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

why backticks? The other headings only have it because they're classes

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It appeared a little big in the table content in relation to the others.

@timgraham timgraham changed the title Atlas search docs rework Polish Atlas search docs Aug 26, 2025
@timgraham timgraham force-pushed the atlas-search-docs-rework branch from 09cffc1 to 3cc1e00 Compare August 26, 2025 19:38
Co-authored-by: Tim Graham <[email protected]>
@timgraham timgraham force-pushed the atlas-search-docs-rework branch from 3cc1e00 to 699b9d2 Compare August 27, 2025 12:42
@timgraham timgraham merged commit 699b9d2 into mongodb:main Aug 27, 2025
14 checks passed
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.

3 participants