2016-06-21 7 views
0

私はUbuntu 16.04でElasticSearch 2.3.1を使用しています。ElasticSearchでスコアが表示されないのはなぜですか?

マッピングは次のとおりです。

{ 
    "settings": { 
     "analysis": { 
      "filter": {    
       "2gramsto3_filter": { 
        "type":  "ngram", 
        "min_gram": 2, 
        "max_gram": 3 
       }     
      },   
      "analyzer": { 
       "2gramsto3": { 
        "type":  "custom", 
        "tokenizer": "standard", 
        "filter": [ 
         "lowercase", 
         "2gramsto3_filter" 
        ] 
       } 
      } 
     } 
    }, 
    "mappings": { 
     "agents": { 
      "properties": {        
       "presentation": { 
        "type": "string", 
        "analyzer": "2gramsto3"     
       }, 
       "cv": { 
        "type": "string", 
        "analyzer": "2gramsto3"     
       } 
     } 
    } 
} 

クエリは次のとおりです。

{ 
    "size": 20, 
    "from": 0, 
    "query": { 
    "bool": { 
     "filter": [ 
     { 
      "bool": { 
      "must": [ 
       [ 
       { 
        "match": { 
        "cv": "folletto" 
        } 
       }, 
       { 
        "match": { 
        "cv": " psicologia" 
        } 
       }, 
       { 
        "match": { 
        "cv": " tenacia" 
        } 
       } 
       ] 
      ] 
      } 
     } 
     ] 
    } 
    } 
} 

それは14567個の文書が見つかりましたが、スコアは常に"_score": 0

である私は、フィルタは、スコアを持って読んでだから、なぜこのケースでは?

ありがとうございました!

答えて

関連する問題