https://github.com/mongodb-developer/getting-started-search-java
A demo application for getting started with Atlas Search.
https://github.com/mongodb-developer/getting-started-search-java
atlas atlas-search java mongodb mongodb-atlas mongodb-java-driver
Last synced: about 2 months ago
JSON representation
A demo application for getting started with Atlas Search.
- Host: GitHub
- URL: https://github.com/mongodb-developer/getting-started-search-java
- Owner: mongodb-developer
- License: apache-2.0
- Created: 2023-03-20T13:23:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T11:54:44.000Z (over 2 years ago)
- Last Synced: 2026-04-21T21:46:02.938Z (about 2 months ago)
- Topics: atlas, atlas-search, java, mongodb, mongodb-atlas, mongodb-java-driver
- Language: Java
- Homepage:
- Size: 131 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Getting Started with MongoDB Search in Java
This repository contains examples of using MongoDB Search with Java.
The First Search Example code was written for the article ["Using MongoDB Search From Java"](https://www.mongodb.com/developer/products/atlas/atlas-search-java/).
This example uses the `run` target and searches the `default` index.
In order to run the `FirstSearchExample`, follow these steps:
* Add the [sample collections](https://www.mongodb.com/docs/atlas/sample-data/) to your Atlas cluster
* If you're not already an Atlas user, [get started with Atlas](https://www.mongodb.com/docs/atlas/getting-started/)
* [Create an MongoDB Search index](https://www.mongodb.com/docs/atlas/atlas-search/tutorial/create-index/) on the `movies` collection, named `default`
* Run the example program:
`ATLAS_URI="<>" ./gradlew run`
## Questions?
Questions about this repo or how to use MongoDB Search and Java together? Ask them in the [MongoDB Community](https://community.mongodb.com).