2
我對這個技術棧很陌生,我不知道從哪裏開始。Logstash和ElasticSearch術語標記
我有一個字段命名APPLICATION_NAME,我有空格,例如值「app android」,「app ios」。什麼是最簡單的logstash-elasticsearch配置有兩個術語,分別是「app android」和「app ios」,而不是「app」,「android」和「ios」?
我對這個技術棧很陌生,我不知道從哪裏開始。Logstash和ElasticSearch術語標記
我有一個字段命名APPLICATION_NAME,我有空格,例如值「app android」,「app ios」。什麼是最簡單的logstash-elasticsearch配置有兩個術語,分別是「app android」和「app ios」,而不是「app」,「android」和「ios」?
你需要創建一個索引模板(http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html),設置字段,你不想來標記,以"index": "not_analyzed"
您還可以創建原來默認not_analyzed每個字符串字段的模板 - 爲例這一點,請參見:https://gist.github.com/deverton/2970285
[這](http://stackoverflow.com/questions/20384374/elastic-search-for-terms-with-spaces)*威力*回答你的問題 – GPPK