Skip to content
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

Add support for managing Atlas search indexes. #1158

Merged
merged 34 commits into from
Jul 31, 2023

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin commented Jul 5, 2023

  • Added new collection helpers that allow users to define their search indexes directly within their code.
  • Added unified tests to ensure the proper command structure and format.

The new search index commands are not supported in transactions yet. As a result, the ClientSession parameter has not been provided.

JAVA-4983

vbabanin added 3 commits July 5, 2023 11:54
- Add new collection helpers that allow users to define their search indexes directly within their code.
- Implement unified tests to ensure the proper command structure and format.

JAVA-4983
JAVA-4983
vbabanin added 3 commits July 5, 2023 15:32
JAVA-4983
JAVA-4983
JAVA-4983
@vbabanin vbabanin requested review from rozza and stIncMale July 7, 2023 15:43
@vbabanin vbabanin marked this pull request as ready for review July 7, 2023 15:43
@vbabanin
Copy link
Member Author

vbabanin commented Jul 7, 2023

One of the spec tests is currently failing due to unexpected server behavior, and I'm working on resolving it.

UPD: There is an associated server issue has been created SERVER-78831. This issue is the reason behind the test failure.

Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

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

Some minor nits but looking good so far.

Main question I have is; should the API also include clientSession support?

vbabanin added 4 commits July 10, 2023 18:32
Use append for BsonDocument construction.
Change the order of exception handling to have logicaly grouped sections.

JAVA-4983
JAVA-4983
…nterfaces since cursor is non-tailable.

JAVA-4983
@vbabanin vbabanin requested a review from rozza July 12, 2023 01:17
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

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

LGTM

vbabanin and others added 10 commits July 14, 2023 20:18
…iteSearchIndexOperation.java

Co-authored-by: Valentin Kovalenko <[email protected]>
…iteSearchIndexOperation.java

Co-authored-by: Valentin Kovalenko <[email protected]>
…iteSearchIndexOperation.java

Co-authored-by: Valentin Kovalenko <[email protected]>
…chIndexesOperation.java

Co-authored-by: Valentin Kovalenko <[email protected]>
…chIndexesOperation.java

Co-authored-by: Valentin Kovalenko <[email protected]>
Co-authored-by: Valentin Kovalenko <[email protected]>
Add strictest modifiers.

JAVA-4983
JAVA-4983
@stIncMale
Copy link
Member

TODO for @stIncMale: We discussed that a write concern can't really be null. Check that eventually it is not, or discuss again.

@vbabanin vbabanin requested a review from stIncMale July 17, 2023 20:08
Copy link
Member

@stIncMale stIncMale left a comment

Choose a reason for hiding this comment

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

There are a few things from the previous review round, and a few small new things.

vbabanin and others added 3 commits July 24, 2023 14:16
Make UpdateSearchIndexOperation use SearchIndexRequest.

JAVA-4983
Remove redundunt method.

JAVA-4983
@vbabanin vbabanin requested a review from stIncMale July 25, 2023 21:24
Copy link
Member

@stIncMale stIncMale left a comment

Choose a reason for hiding this comment

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

#1158 (comment) is still outstanding, otherwise 👍

JAVA-4983
@vbabanin vbabanin requested a review from stIncMale July 26, 2023 00:41
JAVA-4983
@vbabanin vbabanin merged commit 46903fb into mongodb:master Jul 31, 2023
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