-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
- 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
JAVA-4983
driver-core/src/main/com/mongodb/internal/operation/ListSearchIndexesOperation.java
Outdated
Show resolved
Hide resolved
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. |
JAVA-4983
There was a problem hiding this 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?
driver-core/src/main/com/mongodb/internal/operation/ListSearchIndexesOperation.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/SearchIndexRequest.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/UpdateSearchIndexesOperation.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/ListSearchIndexesIterable.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/ListSearchIndexesIterable.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/ListSearchIndexesIterable.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/internal/ListSearchIndexesIterableImpl.java
Show resolved
Hide resolved
...rc/integration/kotlin/com/mongodb/kotlin/client/coroutine/syncadapter/SyncMongoCollection.kt
Outdated
Show resolved
Hide resolved
Use append for BsonDocument construction. Change the order of exception handling to have logicaly grouped sections. JAVA-4983
JAVA-4983
JAVA-4983
…nterfaces since cursor is non-tailable. JAVA-4983
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...er-core/src/test/resources/unified-test-format/index-management/tests/createSearchIndex.json
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/AggregateOperation.java
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/ListSearchIndexesIterable.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/client/model/SearchIndexModel.java
Outdated
Show resolved
Hide resolved
...reactive-streams/src/main/com/mongodb/reactivestreams/client/ListSearchIndexesPublisher.java
Show resolved
Hide resolved
...ams/src/main/com/mongodb/reactivestreams/client/internal/ListSearchIndexesPublisherImpl.java
Outdated
Show resolved
Hide resolved
...ams/src/main/com/mongodb/reactivestreams/client/internal/ListSearchIndexesPublisherImpl.java
Show resolved
Hide resolved
...ams/src/main/com/mongodb/reactivestreams/client/internal/ListSearchIndexesPublisherImpl.java
Outdated
Show resolved
Hide resolved
...ams/src/main/com/mongodb/reactivestreams/client/internal/ListSearchIndexesPublisherImpl.java
Outdated
Show resolved
Hide resolved
…xRequest.java Co-authored-by: Valentin Kovalenko <[email protected]>
….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]>
…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
TODO for @stIncMale: We discussed that a write concern can't really be |
JAVA-4983
JAVA-4983
JAVA-4983
JAVA-4983
…rs for name parameter. JAVA-4983
JAVA-4983
There was a problem hiding this 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.
driver-reactive-streams/src/main/com/mongodb/reactivestreams/client/MongoCollection.java
Outdated
Show resolved
Hide resolved
driver-scala/src/main/scala/org/mongodb/scala/MongoCollection.scala
Outdated
Show resolved
Hide resolved
driver-scala/src/main/scala/org/mongodb/scala/MongoCollection.scala
Outdated
Show resolved
Hide resolved
driver-reactive-streams/src/main/com/mongodb/reactivestreams/client/MongoCollection.java
Outdated
Show resolved
Hide resolved
driver-reactive-streams/src/main/com/mongodb/reactivestreams/client/MongoCollection.java
Outdated
Show resolved
Hide resolved
driver-scala/src/main/scala/org/mongodb/scala/MongoCollection.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: Valentin Kovalenko <[email protected]>
Make UpdateSearchIndexOperation use SearchIndexRequest. JAVA-4983
Remove redundunt method. JAVA-4983
There was a problem hiding this 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
JAVA-4983
The new search index commands are not supported in transactions yet. As a result, the ClientSession parameter has not been provided.
JAVA-4983