Elasticsearch is a modern full-text search and analytics engine. You can use it to store any type of data and then search, index, and analyze it.
In this tutorial, we’re going to dive into Dart’s Elastic client library’s features. We’re going to build a search user interface in Flutter and execute queries to retrieve data from Elasticsearch.
Let’s get coding!
For simplicity, I’m going to use a Docker image.
docker-compose.yml
file with the following configuration:version: '3.7'
services:
# ports are open for testing only, should be closed for prod
elastic:
image: elasticsearch:7.9.2
container_name: elastic
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
docker-compose up -d
http://localhost:9200/
You should see a response showing the actual version of Elasticsearch and other information.
#dart #elasticsearch #flutter #software-development