Search Functionality with ElasticSearch
ElasticSearch provides a performant way to query, filter, and sort on documents, such as items in the Crystallize Catalogue.
We have created a couple of ElasticSearch + Crystallize starter projects to provide you with a way to easily add search functionality to your store, while giving you an overview of how the Crystallize catalogue is structured.
The example projects can be found for the following languages:
In order to get started, clone the project you are wanting to use into your workspace.
Creating an ElasticSearch Instance Locally
For local development you can easily set up an ElasticSearch cluster using docker-compose. Navigate to the project folder and run the following command:
docker-compose up -d
This will create 3 ElasticSearch nodes in separate containers, with the main node being exposed on http://localhost:9200.
Using Elastic Cloud
You can also create a deployment on Elastic Cloud which provides an easy set up for a production environment.