[JAVA-5152] Remove deprecated methods supporting geoHaystack/geoSearch Created: 11/Sep/23  Updated: 05/Dec/23  Resolved: 07/Nov/23

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Unknown
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Epic Link: Remove deprecated APIs for 5.0 release
Quarter: FY24Q4
Backwards Compatibility: Minor Change
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

            com.mongodb.client.model 
                Indexes  (1 usage found)
                    geoHaystack(String, Bson)
                IndexOptions 
                    getBucketSize() 
                    bucketSize(Double)

MongoDB 5.0 removes the deprecated geoHaystack index and geoSearch command. Use a 2d index with $geoNear or one of the supported geospatial query operators instead.

Given that MongoDB 4.4 (the release before 5.0) is EOL in early 2024, these methods can be removed in the 5.0 driver.



 Comments   
Comment by Githook User [ 05/Dec/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Remove deprecated index-related methods

JAVA-5152
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/071e152e10c37a8d225d338335de434b7d3f0ad6

Comment by Githook User [ 20/Nov/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Remove deprecated index-related methods

JAVA-5152
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e047e0831530089c842051dac5ace75e5d94c394

Generated at Thu Feb 08 09:03:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.