NGram with Elasticsearch
Setup a sandbox
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
sshCreate a directory for running an elasticsearch sandbox:
Step into the working directory:
Create a
docker-compose.ymlfile to install and run elasticsearch:Create an entrypoint file named
docker-entrypoint-es2-plugins.shto install useful plugins:Make sure to change the permissions to execute
shfiles:Start the service:
docker-compose upOpen a browser to view the two plugins running on ES:
Play Around
Use the
Any Requesttab in/_plugin/head/to create an index with a custom analyzer for a 3 by 3 ngram:Go to
/_plugin/elasticsearch-inquisitor/#/analyzersto see thengram_3_by_3analyzer 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

Last updated