Elastic Search Basics
EalsaticSearch Basics#
What is ElasticSearch?#
It is a service, that returns search results based on a query.
How to Query?#
To query elastic search, it needs to have data first. It stores data in the form of maps in indices.
Elasticsearch runs on port 9200
but default.
So if you are running it locally you can connect to it with: http://localhost:9200
Adding Data#
Adding data is done with a post to the server
Querying elasticsearch#
There is a nice tool that makes querying it easy called elastic toolbox
a chrome extension
.
Otherwise you can just use Postman:
You can also validate with:#
https://www.elastic.co/guide/en/elasticsearch/guide/current/_validating_queries.html