To configure search, you must set up Elasticsearch.
If you want to set up Elasticsearch in a UNIX environment, before the setup, perform the following tasks to configure the environment:
To ensure that Elasticsearch does not run out of file descriptors and result in data loss, set the number of file descriptors to 65536 or higher.
To prevent memory swapping, ensure that you configure the system to prevent swapping. You can configure the Java Virtual Machine (JVM) to lock the heap in memory through
mlockall
.
Also, after you install Elasticsearch, set the
bootstrap.memory_lock
property to
true
in the
elasticsearch.yml
file. This property sets the memory lock and prevents memory swapping.
When you start Elasticsearch, if memory locking issues occur, you might need to set
soft memlock unlimited
and
hard memlock unlimited
.
To set up Elasticsearch, perform the following tasks:
Install Elasticsearch.
Create keystores, truststore, and certificates.
Configure the Elasticsearch Java Virtual Machine (JVM).
Configure the Elasticsearch properties file.
Secure the Elasticsearch cluster.
Upload the Search Guard configuration to Elasticsearch.
Configure the client certificate DN in the Elasticsearch properties file
Customize the list of words to ignore in searches.
Customize the list of synonyms to include in searches.