2012-07-11 128 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" : { } }} 

之前,我加入到分析仪的设置部分我有这个工作。任何帮助表示赞赏!

回答