Skip to content

levik666/search-client

Repository files navigation

Simple Search Engine Service

Public UI with simple page for search by tokens. UI is very simple sorry for that. This service is based on the spring-boot framework and uses emebedded tomcat to serve static and dynamic content.

How to build

  • Compile boot jar
./gradlew clean build

Run project

java -jar build/libs/*.jar or ./gradlew bootRun

If you need to override post, search host or search port execute export command:

export PORT=7777
export SEARCH_HOST=localhost
export SEARCH_PORT=5555

Demo

##Note

  • before use search need to upload document for demo you could use the following
curl -X POST \
  https://levik.herokuapp.com/api/v1/document/ \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -d '{
	"key" : "1",
	"tokens" : "test rrr" 
}'

UI documentation:

  • Application health
curl -X GET \
  http://127.0.0.1:7777/actuator/health \
  -H 'accept: application/json' \
  -H 'content-type: application/json'
  • Aplication main page
curl -X GET http://localhost:7777/