Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Repository files navigation

MongoDB Search Server

A Java-based HTTP server GET interface for MongoDB Search, supporting filtering, sorting, highlighting, pagination, and debugging.

This Search Server code was initially written to support the article "How to Build a Search Service in Java with MongoDB".

Building and running locally

The jettyRun target is used and searches the movies_index. The search server code lives under server/

To run the search server locally, follow these steps:

movies_index configuration

{
  "analyzer": "lucene.english",
  "searchAnalyzer": "lucene.english",
  "mappings": {
    "dynamic": true,
    "fields": {
      "cast": [
        {
          "type": "token"
        },
        {
          "type": "string"
        }
      ],
      "genres": [
        {
          "type": "token"
        },
        {
          "type": "string"
        }
      ]
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.