Hi. I am getting problem for setting analyzers for many types. Can
somebody please help me??
elasticsearch/0.16.2}: Setup Failed ...
- SettingsException[Failed to load settings from [file:/home/nachiket/
Softwares/elasticsearch-0.16.2/config/elasticsearch.yml]]
ParserException[while parsing a block mapping; expected , but found BlockMappingStart]
My code is
index :
analysis :
analyzer :
myAnalyzer2 :
type : custom
tokenizer : myTokenizer1
filter : [myTokenFilter1, myTokenFilter2]
char_filter : [my_html]
myanalyzer1 :
type: standard
stopwords: [no , stopwords]
max_token_length: 20
myAnalyzer3:
type: english
stopwords: [ stop , stop1 ]
tokenizer :
myTokenizer1 :
type : pattern
pattern : "(\\W*,\\W*)|(\\W*OR\\W*)|(\\W*AND\\W*)"
filter :
myTokenFilter1 :
type : synonym
synonyms_path : "synonym.txt"
myTokenFilter2 :
type : length
min : 0
max : 2000
char_filter :
my_html :
type : html_strip
escaped_tags : [xxx, yyy]
read_ahead : 1024