This plugin offers array format for REST search responses.
This plugin provide the request format as belows:
GET /_search_array
POST /_search_array
GET /{index}/_search_array
POST /{index}/_search_array
GET /{index}/{type}/_search_array
POST /{index}/{type}/_search_array
-
Software dependencies
- JAVA (jdk-17.0.1)
- Maven
- Elasticsearch (Window: https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.2-windows-x86_64.zip)
-
Installation process
-
Build the compiled version of the Elasticsearch-plugin code, and to create a compiled version of it, run the following command:
$ mvn clean install
-
Install the Elasticsearch-plugin
Make the Elasticsearch (1.iii) directory your current working directory and run the following command:
$ ./cd bin
$ ./elasticsearch-plugin install file:/{path_to_project}/target/releases/elasticsearch-plugin-rs-1.0-SNAPSHOT.zip
-
To check that the plugin is installed correctly in the elasticsearch, run the following command:
$ ./elasticsearch-plugin list
-
-
Run ElasticSearch
$ elasticsearch
-
Test the plugin
To check that the plugin is working the way you want, run the Elasticsearch in your machine and run the following URL in the browser or Postman:
The response should be:
[ {
"study": "test study A",
"StudyUID": "1.2.4.5.5252",
"age": "12"
}, {
"study": "test study B",
"StudyUID": "1.2.4.5.212",
"age": "12"
}, {
"study": "test study C",
"StudyUID": "1.2.4.5.23512.23.125.125",
"age": "35"
} ]