NGram with Elasticsearch
Last updated
Last updated
Note: Even without the video, you can learn all the crucial details from the steps that are documented below
Login to your cloud-box over ssh
Create a directory for running an elasticsearch sandbox:
Step into the working directory:
Create a docker-compose.yml
file to install and run elasticsearch:
Create an entrypoint file named docker-entrypoint-es2-plugins.sh
to install useful plugins:
Make sure to change the permissions to execute sh
files:
Start the service: docker-compose up
Open a browser to view the two plugins running on ES:
Use the Any Request
tab in /_plugin/head/
to create an index with a custom analyzer for a 3 by 3 ngram:
Go to /_plugin/elasticsearch-inquisitor/#/analyzers
to see the ngram_3_by_3
analyzer at the bottom of the page.
click the checkbox and then use the top most input field to see how the analyzer breaks down the input into tokens