Greetings!
I'm new to ElasticSearch and could use some quick validation of my
configuration.
I installed ES via brew on Lion, so ES is installed at:
/usr/local/Cellar/elasticsearch/0.17.1
My config file lives at:
/usr/local/Cellar/elasticsearch/0.17.1/config/elasticsearch.yml
And I'm launching ES manually via:
elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.17.1/
config/elasticsearch.yml
Now in my config file (elasticsearch.yml), I have the following index
definition:
index :
analysis :
analyzer :
standard :
type : standard
tokenizer :
myTokenizer1 :
type : standard
filter :
myTokenFilter1 :
type : synonym
synonyms_path : synonym.txt
And peer to elasticsearch.yml I have created a file named synonym.txt.
A sample of the data in synonym.txt is:
field type, scan type, field dominance
upper field first, uff
After reading the documentation at:
http://www.elasticsearch.org/guide/reference/index-modules/analysis/synonym-tokenfilter.html
It seems to suggest that that:
field type == scan type == field dominance
and
upper field first == off
as in, they're all considered the same thing.
So to test this, I added a new document:
{ "scan type" : "upper field first" }
and then searched for it using:
curl -XGET http://localhost:9200/test/records/_search?q=uff
But I received no hits, but I would have expected that uff would have
translated to "upper field first", which should have received a hit.
So I must be doing something wrong, and this is where I need your
help.
Much thanks!
-jesse