A progressive Node.js framework for building efficient and scalable server-side applications.
$ npm install
$ npm run start
##
# Run docker-compose
$docker-compose up -d
##
##
# Check Index.
##
$curl -X GET http://192.168.171.141:9200/_aliases?pretty=true
##
# Get Data.
$curl -X GET http://localhost:9200/_search
##
# Delet all Indexes.
$curl -X DELETE 'localhost:9200/_all'
##
##
##
# Postman POST Request.
http://localhost:3022/api/v1/products
##
# Request Body
{
"name": "Iphone 13", # Indexed
"price": 999,
"isComplet": true,
"llc": "Apple LLC" # Indexed
}
##
# Postman POST Request.
http://localhost:3022/api/v1/elastic/search?q=PC/name/33
##
##
########################################################################################################
# | Search Data | Elastic indexes | Pagination
# | | |
# ?query= | JavaScript | / name / llc / ... / ... |/ 22
# | | |
# | Should be the first | Search fields | Should be the last
########################################################################################################
# Search for target data.
##
$ http://localhost:3022/api/v1/elastic/search?q={ SEARCH_STRING }
##
$ http://localhost:3022/api/v1/elastic/search?q={ SEARCH_STRING_1 SEARCH_STRING_2 }/{ SEARCH_FIELDS_1, ...}/{ 22 }
##
# Example.
$ http://localhost:3022/api/v1/elastic/search?q=JavaScript/title/tags/authors/12
##