A simple test example to filter posts on a search input.
npm install
npm start
Will be available on http://localhost:3333
Elastic Search On Docker
make setup-es
make setup-data
POST localhost:9200/my_custom_index_name/posts
BODY
{
"title": "This is a sample title",
"subtitle": "This is a sample subititle",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
}
Open the file src/services/Post.js and put there your index and type