How to define a analyzer for an index, not just field?


It seems by default it will not using the default analyzer I defined in 
elasticsearch.yml.
index.analysis.analyzer.default.type: ik

If I request: 
http://localhost:9200/useridx/_search?q=Lin it doesn't using the default 
analyzer.

And this works:
http://localhost:9200/useridx/_search?analyzer=ik&q=Lin

Do we need each query time set the analyzer?

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7b6c3368-d8b4-4178-9a55-d49a0461b1c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to