魏长东

weichangdong

东邪

elastic search小知识

curl  localhost:9200/wcdweather/_count?pretty
curl -XGET localhost:9200/_mapping?pretty
几个es默认的分词器
curl -XPOST localhost:9200/_analyze?analyzer=standard -d '{"text":"New York"}'
curl -XPOST localhost:9200/_analyze?analyzer=whitespace -d '{"text":"New York"}'
curl -XPOST localhost:9200/_analyze?analyzer=simple -d '{"text":"New York"}'