This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPUT 'http://127.0.0.1:9200/i1/?pretty=1' -d ' | |
{ | |
"settings" : { | |
"analysis" : { | |
"filter" : { | |
"edge_ngram" : { | |
"side" : "front", | |
"max_gram" : 20, | |
"min_gram" : 1, | |
"type" : "edgeNGram" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"indices" : { | |
"i3" : { | |
"state" : "open", | |
"settings" : { | |
"index.analysis.analyzer.ascii_edge_ngram.filter.1" : "lowercase", | |
"index.analysis.analyzer.ascii_std.filter.1" : "lowercase", | |
"index.analysis.analyzer.ascii_ngram.type" : "custom", | |
"index.analysis.analyzer.ascii_edge_ngram.filter.2" : "asciifolding", | |
"index.analysis.analyzer.ascii_std.filter.2" : "asciifolding", | |
"index.analysis.analyzer.ascii_ngram.filter.0" : "standard", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# OPTIONS: | |
# -f: start in the foreground | |
# -p <filename>: log the pid to a file (useful to kill it later) | |
# CONTROLLING STARTUP: | |
# | |
# This script relies on few environment variables to determine startup | |
# behavior, those variables are: |