- Using Spring WebClient to consume results returned by ElasticSearch.
- Configurate analyzers for ElasticSearch to extract available keywords from input sentences.
All of the following commands can be run through curl
or Postman
with default url
started with http://localhost:9200/
.
- Configurate analyzers for extracting keywords
PUT /ctsa_keywords
- Using JSON conthttps://github.com/anh-khue/ctsa-capstone/blob/elasticsearch/elasticsearch/search-and-response.jsonent from extracting-keyword-analyzer-configuration.json
- Insert keywords
POST /ctsa_keywords/it_keywords/{id}
- Insert values with JSON template from insert-keyword.json
- 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
- Using JSON template for