anh-khue / elasticsearch-consumer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consume ElasticSearch using Spring WebClient

  • Using Spring WebClient to consume results returned by ElasticSearch.
  • Configurate analyzers for ElasticSearch to extract available keywords from input sentences.

How to run configurations for ElasticSearch

All of the following commands can be run through curl or Postman with default url started with http://localhost:9200/.

  1. Configurate analyzers for extracting keywords
  1. Insert keywords
  • POST /ctsa_keywords/it_keywords/{id}
  • Insert values with JSON template from insert-keyword.json
  1. Search and Response
  • POST /ctsa_keywords/it_keywords/_search
  • In search-and-response.json:
    • Using JSON template for query for sending request and search for keywords
    • Response will have the template like response

About


Languages

Language:Java 100.0%