2012-07-11 127 views
1

我有以下針對彈性搜索索引的映射。我張貼(「放」)到http://abc.com/test/article/_mapping彈性搜索映射不良映射

{ 
    "article": { 
     "settings": { 
      "analysis": { 
       "analyzer": { 
        "stem": { 
         "tokenizer": "standard", 
         "filter": [ 
          "standard", 
          "lowercase", 
          "stop", 
          "porter_stem" 
         ] 
        } 
       } 
      } 
     }, 
     "mappings": { 
      "properties": { 
       "DocumentID": { 
        "type": "string" 
       }, 
       "ContentSource": { 
        "type": "integer" 
       }, 
       "ContentType": { 
        "type": "integer" 
       }, 
       "PageTitle": { 
        "type": "string", 
        "analyzer": "stem" 
       }, 
       "ContentBody": { 
        "type": "string", 
        "analyzer": "stem" 
       }, 
       "URL": { 
        "type": "string" 
       } 
      } 
     } 
    } 
} 

我從Elastic Search收到一條OK消息。但是當我去http://abc.com/test/article/_mapping時,我看不到映射的設置。我看到的是這個

{ "article" : { "properties" : { } }} 

之前,我加入到分析儀的設置部分我有這個工作。任何幫助表示讚賞!

回答