Index analyzer config


(chuter) #1

Hi ALL,

If i config the specific analyzer(my own analyzer) for fields of one index,
does it mean the specific analyzer will be used when searching use the fields?

i.e.:
mapping use below:

curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '
{
"tweet" : {
"properties" : {
"message" : {"type":"string", "index":"analyzed", "analyzer":"wintim-dict-based-analyzer"}
}
}
}
'
use the follow query to search:

q=message:(whatever)&pretty=true

(system) #2