Coder Social home page Coder Social logo

timbuctoo-elasticsearch-indexer's Introduction

Timbuctoo Elastic Search Indexer

API

Reindex a specific dataset

URL

/

Method

POST

Content Type

application/json

Request Body

{"dataSetId": <dataset id>}

Example curl

curl -d '{"dataSetId": "dataSetId"}' -H "Content-Type: application/json" -X POST https://localhost/

Reindex all the datasets

URL

/all

Method

POST

Example curl

curl -X POST https://localhost/all

How to test

  1. Create a local image of the Indexer: docker build -t huygensing/timbuctoo-elasticsearch-indexer .

  2. Run the environment: docker-compose up -d

  3. Upload data to Timbuctoo see: https://github.com/HuygensING/timbuctoo#uploading-data

  4. Create an index in Timbuctoo see: https://github.com/HuygensING/timbuctoo/blob/master/documentation/create_an_index_config.adoc

  5. Step 4 should trigger the indexing trigger the indexing. See the API

Development

Run both commands from the root directory of the project.

Compilation of Type script

tsc -w

Running the tool

nodemon dist/**

Start the application

node dist/app.js

Other prerequisites

Make sure: * You have a version of Timbuctoo running and follow the "Getting Started" from the README.adoc. * You have Elasticsearch running For example with docker: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html * This project uses:

  docker pull docker.elastic.co/elasticsearch/elasticsearch:5.5.2
  docker run -p 9200:9200 -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" docker.elastic.co/elasticsearch/elasticsearch:5.5.2

Add dependencies

yarn add {name of the dependency} --dev install all dependencies: yarn install

Test requests

To test the tool we use Insomnia. The requests can be imported from insomniarequests.json.

Versioning

The releases / versions of this tool will follow the Timbuctoo versions. The version build for Timbuctoo v5.0.0, will be v5.0.0.

timbuctoo-elasticsearch-indexer's People

Contributors

jauco avatar mmaas3 avatar mvdpwork avatar kerim1 avatar

Watchers

Ronald Haentjens Dekker avatar James Cloos avatar  avatar Gertjan Filarski avatar Rutger van Koert avatar  avatar  avatar Bas Doppen avatar Rob Zeeman avatar  avatar  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.