Wednesday, April 1, 2020

Elastisearch once again

Elastisearch once again

Elasticsearch is a search engine based on the Lucene library. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents. Elasticsearch is developed in Java.

Elasticsearch is a distributed, RESTful highly scalable open-source full-text search and analytics engine capable of solving a growing number of use cases. It allows you to store, search, and analyze big volumes of data quickly and in near real time. Related to other products as Kibana and Logstash...

In application.properties we can write the information to connect to H2 database (in-memory, java-based fast and easy database for rapid development):
spring.datasource.url=jdbc:h2:mem:simulationdb;INIT=RUNSCRIPT FROM '/home/kris/KD/h2-create-insert.sql';DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.driverClassName=org.h2.Driver

Now we can log in and check at the console:
http://localhost:8080/h2

Further information:

https://pl.wikipedia.org/wiki/Elasticsearch

https://www.elastic.co/guide/index.html

https://docs.spring.io/spring-data/elasticsearch/docs/current/api/org/springframework/data/elasticsearch/annotations/package-tree.html

https://docs.spring.io/spring-data/elasticsearch/docs/current/api/org/springframework/data/elasticsearch/annotations/Document.html

https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/annotations/Document.java

https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-elasticsearch-specification.html

No comments: