私は私のマッピング定義では、以下のフィールドがあります。Elasticsearch "not_analyzed"フィールドがなぜ分割されるのですか?
...
"my_field": {
"type": "string",
"index":"not_analyzed"
}
...
値が3項に分割されていることをmy_field = 'test-some-another'
の値を持つ私は、インデックス文書:test
、some
、another
を。
私は間違っていますか?
私は、次のインデックスが作成されています。
curl -XPUT localhost:9200/my_index -d '{
"index": {
"settings": {
"number_of_shards": 5,
"number_of_replicas": 2
},
"mappings": {
"my_type": {
"_all": {
"enabled": false
},
"_source": {
"compressed": true
},
"properties": {
"my_field": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}'
その後、私は、インデックス、次の文書:私は次のようになります curl -XGET localhost:9200/my_index/_termlist
:その後、私は、次のAPIとプラグインhttps://github.com/jprante/elasticsearch-index-termlistを
curl -XPOST localhost:9200/my_index/my_type -d '{
"my_field": "test-some-another"
}'
を使用レスポンス:
{"ok":true,"_shards":{"total":5,"successful":5,"failed":0},"terms": ["test","some","another"]}
問題を示す詳細な例を追加できますか?あなたはどのようにしてテストが他の3つの条件に分割されていると判断しましたか? – imotov
あなたの答えに私の質問を変更しました。迅速な返信をありがとう! – Georgi