docs/README.txt
changeset 135 474f0ca528c9
parent 132 92a69e693cca
child 144 1d07028b9283
equal deleted inserted replaced
134:fd71b6ea3863 135:474f0ca528c9
    10 curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfNewsEvent/_mapping -d @mappings/WfNewsEvent.json
    10 curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfNewsEvent/_mapping -d @mappings/WfNewsEvent.json
    11 curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfTopic/_mapping -d @mappings/WfTopic.json
    11 curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfTopic/_mapping -d @mappings/WfTopic.json
    12 curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfBlogPost/_mapping -d @mappings/WfBlogPost.json
    12 curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfBlogPost/_mapping -d @mappings/WfBlogPost.json
    13 
    13 
    14 
    14 
    15 PUT /onf_website/_mapping/PyAMS_document
    15 PUT /onf_website/_mapping/_doc
    16 {
    16 {
    17   "properties": {
    17   "properties": {
    18     "header": {
    18     "header": {
    19       "type": "object",
    19       "type": "object",
    20       "properties": {
    20       "properties": {
    30     }
    30     }
    31   }
    31   }
    32 }
    32 }
    33 
    33 
    34 
    34 
    35 PUT /onf_website/_mapping/PyAMS_document
    35 PUT /onf_website/_mapping/_doc
    36 {
    36 {
    37   "properties": {
    37   "properties": {
    38     "parent_ids": {
    38     "parent_ids": {
    39       "type": "keyword"
    39       "type": "keyword"
    40     }
    40     }
    41   }
    41   }
    42 }
    42 }
    43 
    43 
    44 
    44 
    45 PUT /onf_website/_mapping/PyAMS_document
    45 PUT /onf_website/_mapping/_doc
    46 {
    46 {
    47   "properties": {
    47   "properties": {
    48     "resource_info": {
    48     "resource_info": {
    49       "type": "object",
    49       "type": "object",
    50       "properties": {
    50       "properties": {
    91           "type": "keyword"
    91           "type": "keyword"
    92         },
    92         },
    93         "isbn_number": {
    93         "isbn_number": {
    94           "type": "keyword"
    94           "type": "keyword"
    95         },
    95         },
       
    96         "awards": {
       
    97           "type": "object",
       
    98           "properties": {
       
    99             "en": {
       
   100               "type": "text"
       
   101             },
       
   102             "fr": {
       
   103               "type": "text",
       
   104               "analyzer": "french",
       
   105               "search_analyzer": "french_search"
       
   106             }
       
   107           }
       
   108         },
    96         "summary": {
   109         "summary": {
    97           "type": "object",
   110           "type": "object",
    98           "properties": {
   111           "properties": {
    99             "en": {
   112             "en": {
   100               "type": "text"
   113               "type": "text"
   104               "analyzer": "french",
   117               "analyzer": "french",
   105               "search_analyzer": "french_search"
   118               "search_analyzer": "french_search"
   106             }
   119             }
   107           }
   120           }
   108         },
   121         },
       
   122         "synopsis": {
       
   123           "type": "object",
       
   124           "properties": {
       
   125             "en": {
       
   126               "type": "text"
       
   127             },
       
   128             "fr": {
       
   129               "type": "text",
       
   130               "analyzer": "french",
       
   131               "search_analyzer": "french_search"
       
   132             }
       
   133           }
       
   134         },
   109         "publisher_words": {
   135         "publisher_words": {
   110           "type": "object",
   136           "type": "object",
   111           "properties": {
   137           "properties": {
   112             "en": {
   138             "en": {
   113               "type": "text"
   139               "type": "text"
   122       }
   148       }
   123     }
   149     }
   124   }
   150   }
   125 }
   151 }
   126 
   152 
   127 PUT /onf_website/_mapping/PyAMS_document
   153 PUT /onf_website/_mapping/_doc
   128 {
   154 {
   129   "properties": {
   155   "properties": {
   130     "link": {
   156     "link": {
   131         "type": "object",
   157         "type": "object",
   132         "properties": {
   158         "properties": {