Elasticsearch case insensitive - analyzer

(N3sh) #1


I have installed and finally managed to run Elasticsearch and couchDB.
Everything seemed fine until when I realized that case insensitive and wildcard were not working together.

I believe you already know what I am talking about, I have found some posts around the interwebz; but still, I did not manage to fix it.

Here is how I created my index:

curl -XPUT 'localhost:9200/_river/testing/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "localhost",
"port" : 5984,
"db" : "testing",
"filter" : null
"index" : {
"index" : "testing",
"type" : "testing",
"analyzer" : "string_lowercase",
"bulk_size" : "100",
"bulk_timeout" : "10ms"


As you can notice, I have added the 'analyzer' field to the index; just to try.
The original version of my index was without that field.

I then added this, to my elasticsearch.yml:

tokenizer: keyword
filter: lowercase

I have also restarted the process, but still nothing to do.

I just want that the User doesn't need to know the exact case of a word for being able to find it.

P.S. try to be very detailed in your answer as I started working with elasticsearch today.
P.P.S. I don't know if it important, but I would like to apply that analyzer to all my fields, not only 1.

(system) #2