Skip to content

This repository demonstrates how to integrate MongoDB Atlas Search with the Kotlin Sync driver using a Spring Boot REST application. The goal is to create a solution for exploring and discovering an ideal Airbnb, leveraging the advanced search capabilities of MongoDB Atlas.

Notifications You must be signed in to change notification settings

mongodb-developer/kotlin-driver-atlas-search

Repository files navigation

kotlin-driver-atlas-search

This repository demonstrates how to integrate MongoDB Atlas Search with the Kotlin Sync driver using a Spring Boot REST application. The goal is to create a solution for exploring and discovering properties similar to Airbnb, leveraging the advanced search capabilities of MongoDB Atlas.

You can read more on:

Demonstration

Demonstration

Prerequisites

Before you start, make sure you have the following:

  1. MongoDB Atlas Account

    • Get started with MongoDB Atlas for free! If you don’t already have an account, MongoDB offers a free-forever Atlas cluster. You can sign up here.
  2. Java 21+

    • Ensure that you have Java 21 or higher installed. You can download the latest version from the Oracle website
  3. Gradle 8.8+

    • This project uses Gradle for build automation. Make sure you have Gradle version 8.8 or later. You can download Gradle from the official website.
  4. IDE of Your Choice

Getting Started

  1. Clone the Repository

    git clone https://github.com/mongodb-developer/kotlin-driver-atlas-search.git
    cd kotlin-driver-atlas-search
    
  2. Build the Project

    ./gradlew build
    
  3. Run the Application

    ./gradlew bootRun
    
  4. Access the Endpoint

  • Once the application is running, you can access the search endpoint at http://localhost:8080/airbnb/search.

    • Endpoint Parameters:

      • query: A text string to perform a full-text search with fuzzy matching on the summary field.
      • minNumberReviews: The minimum number of reviews required for each Airbnb listing to be included in the results.
         curl --location 'http://localhost:8080/airbnb/search?query=Istambun&minNumberReviews=50'

About

This repository demonstrates how to integrate MongoDB Atlas Search with the Kotlin Sync driver using a Spring Boot REST application. The goal is to create a solution for exploring and discovering an ideal Airbnb, leveraging the advanced search capabilities of MongoDB Atlas.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages