8000 (DOCSP-29210): CRUD > Search Geospatially page by cbullinger · Pull Request #13 · mongodb/docs-kotlin · GitHub
[go: up one dir, main page]

Skip to content

(DOCSP-29210): CRUD > Search Geospatially page #13

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

Merged
merged 7 commits into from
May 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update to dropIndexes()
  • Loading branch information
cbullinger committed May 5, 2023
commit c80e3d4d3caece24061d21668a86348c08d735f3
6 changes: 2 additions & 4 deletions examples/src/test/kotlin/GeoTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,12 @@ internal class SearchGeospatialTest {
@AfterEach
fun afterEach() {
runBlocking {
collection.dropIndex("location.geo_2dsphere")
collection.dropIndex("coordinates_2d")
collection.dropIndexes()
}}

@Test
fun indexTest() = runBlocking {
collection.dropIndex("location.geo_2dsphere")
collection.dropIndex("coordinates_2d")
collection.dropIndexes()
// :snippet-start: geo2dsphere-index
collection.createIndex((Indexes.geo2dsphere("location.geo")))
// :snippet-end:
Expand Down
0