Coder Social home page Coder Social logo

elasticsearch-comic-books-index's Introduction

Elasticsearch Sample Index: Comic Books

This script aims to create an Elasticsearch index for comic books using a CSV file containing the necessary data. The index will allow for demoing search and retrieval of comic book information based on various criteria.

Usage

  1. Build the Docker image:
make docker-build
  1. Run the Docker container to index the comic books in Elasticsearch:
make docker-run

Configuration

The following environment variables can be configured in the docker-run command:

  • ELASTICSEARCH_URL: The URL of the Elasticsearch instance.
  • ELASTICSEARCH_USERNAME: The username for Elasticsearch authentication. Default: empty.
  • ELASTICSEARCH_PASSWORD: The password for Elasticsearch authentication. Default: empty.
  • NUMBER_OF_SHARDS: The number of shards for index. Default: 1.
  • NUMBER_OF_REPLICAS: The number of replicas for index. Default: 1.
  • INDEX_NAME: The name of the Elasticsearch index to be created.
  • INDEX_RECREATE: Whether to recreate the index if it already exists. Set to True to recreate the index; otherwise, set to False. Default: False.

Sample Data

Here is an example of the CSV data format:

Title,Writer,Main Character,Publisher,Release Date,Description
The Dark Knight Returns,Frank Miller,Batman,DC Comics,1986-02-01,In a dystopian future; an aging Bruce Wayne dons the cape and cowl once again to save Gotham City from a new wave of crime. Frank Miller's gritty and dark portrayal of Batman revolutionized the character and became a defining moment in comic book history.

elasticsearch-comic-books-index's People

Contributors

mohllal avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.