src/pyams_content_es.egg-info/PKG-INFO
changeset 144 1d07028b9283
parent 141 9f7ad3fcb3b9
child 147 73d8de7b1359
equal deleted inserted replaced
143:d02a2552ea24 144:1d07028b9283
     1 Metadata-Version: 2.1
     1 Metadata-Version: 2.1
     2 Name: pyams-content-es
     2 Name: pyams-content-es
     3 Version: 0.1.24
     3 Version: 0.1.25
     4 Summary: PyAMS content interfaces and classes for ElasticSearch indexation
     4 Summary: PyAMS content interfaces and classes for ElasticSearch indexation
     5 Home-page: http://hg.ztfy.org/pyams/pyams_content_es
     5 Home-page: http://hg.ztfy.org/pyams/pyams_content_es
     6 Author: Thierry Florac
     6 Author: Thierry Florac
     7 Author-email: tflorac@ulthar.net
     7 Author-email: tflorac@ulthar.net
     8 License: ZPL
     8 License: ZPL
    10         Liste des actions à effectuer
    10         Liste des actions à effectuer
    11         =============================
    11         =============================
    12         
    12         
    13         curl --noproxy localhost -XPUT    http://localhost:9200/_ingest/pipeline/attachment -d @attachment.json
    13         curl --noproxy localhost -XPUT    http://localhost:9200/_ingest/pipeline/attachment -d @attachment.json
    14         
    14         
    15         curl --noproxy localhost -XDELETE http://localhost:9200/onf_website
    15         curl --noproxy localhost -XDELETE http://localhost:9200/pyams-v1
    16         curl --noproxy localhost -XPUT    http://localhost:9200/onf_website -d @index-settings.json
    16         curl --noproxy localhost -XPUT    http://localhost:9200/pyams-v1 -d @index-settings.json
    17         
    17         
    18         curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfNewsEvent/_mapping -d @mappings/WfNewsEvent.json
    18         
    19         curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfTopic/_mapping -d @mappings/WfTopic.json
    19         PUT /pyams/_mapping/_doc
    20         curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfBlogPost/_mapping -d @mappings/WfBlogPost.json
       
    21         
       
    22         
       
    23         PUT /onf_website/_mapping/_doc
       
    24         {
    20         {
    25           "properties": {
    21           "properties": {
    26             "header": {
    22             "workflow": {
    27               "type": "object",
    23               "type": "object",
    28               "properties": {
    24               "properties": {
    29                 "en": {
    25                 "name": {
    30                   "type": "text"
    26                   "type": "keyword"
    31                 },
    27                 },
    32                 "fr": {
    28                 "date": {
    33                   "type": "text",
    29                   "type": "date"
    34                   "analyzer": "french",
    30                 },
    35                   "search_analyzer": "french_search"
    31                 "status": {
       
    32                   "type": "keyword"
       
    33                 },
       
    34                 "created_date": {
       
    35                   "type": "date"
       
    36                 },
       
    37                 "modified_date": {
       
    38                   "type": "date"
       
    39                 },
       
    40                 "publication_date": {
       
    41                   "type": "date"
       
    42                 },
       
    43                 "effective_date": {
       
    44                   "type": "date"
       
    45                 },
       
    46                 "push_end_date": {
       
    47                   "type": "date"
       
    48                 },
       
    49                 "expiration_date": {
       
    50                   "type": "date"
       
    51                 },
       
    52                 "first_publication_date": {
       
    53                   "type": "date"
       
    54                 },
       
    55                 "visible_publication_date": {
       
    56                   "type": "date"
    36                 }
    57                 }
    37               }
    58               }
    38             }
    59             }
    39           }
    60           }
    40         }
    61         }
    41         
    62         
    42         
    63         
    43         PUT /onf_website/_mapping/_doc
       
    44         {
       
    45           "properties": {
       
    46             "parent_ids": {
       
    47               "type": "keyword"
       
    48             }
       
    49           }
       
    50         }
       
    51         
       
    52         
       
    53         PUT /onf_website/_mapping/_doc
       
    54         {
       
    55           "properties": {
       
    56             "resource_info": {
       
    57               "type": "object",
       
    58               "properties": {
       
    59                 "original_title": {
       
    60                   "type": "text"
       
    61                 },
       
    62                 "author": {
       
    63                   "type": "text"
       
    64                 },
       
    65                 "translator": {
       
    66                   "type": "text"
       
    67                 },
       
    68                 "illustrator": {
       
    69                   "type": "text"
       
    70                 },
       
    71                 "drawer": {
       
    72                   "type": "text"
       
    73                 },
       
    74                 "colourist": {
       
    75                   "type": "text"
       
    76                 },
       
    77                 "lettering": {
       
    78                   "type": "text"
       
    79                 },
       
    80                 "producer": {
       
    81                   "type": "text"
       
    82                 },
       
    83                 "director": {
       
    84                   "type": "text"
       
    85                 },
       
    86                 "actors": {
       
    87                   "type": "text"
       
    88                 },
       
    89                 "editor": {
       
    90                   "type": "text"
       
    91                 },
       
    92                 "collection": {
       
    93                   "type": "keyword"
       
    94                 },
       
    95                 "series": {
       
    96                   "type": "text"
       
    97                 },
       
    98                 "editor_reference": {
       
    99                   "type": "keyword"
       
   100                 },
       
   101                 "isbn_number": {
       
   102                   "type": "keyword"
       
   103                 },
       
   104                 "awards": {
       
   105                   "type": "object",
       
   106                   "properties": {
       
   107                     "en": {
       
   108                       "type": "text"
       
   109                     },
       
   110                     "fr": {
       
   111                       "type": "text",
       
   112                       "analyzer": "french",
       
   113                       "search_analyzer": "french_search"
       
   114                     }
       
   115                   }
       
   116                 },
       
   117                 "summary": {
       
   118                   "type": "object",
       
   119                   "properties": {
       
   120                     "en": {
       
   121                       "type": "text"
       
   122                     },
       
   123                     "fr": {
       
   124                       "type": "text",
       
   125                       "analyzer": "french",
       
   126                       "search_analyzer": "french_search"
       
   127                     }
       
   128                   }
       
   129                 },
       
   130                 "synopsis": {
       
   131                   "type": "object",
       
   132                   "properties": {
       
   133                     "en": {
       
   134                       "type": "text"
       
   135                     },
       
   136                     "fr": {
       
   137                       "type": "text",
       
   138                       "analyzer": "french",
       
   139                       "search_analyzer": "french_search"
       
   140                     }
       
   141                   }
       
   142                 },
       
   143                 "publisher_words": {
       
   144                   "type": "object",
       
   145                   "properties": {
       
   146                     "en": {
       
   147                       "type": "text"
       
   148                     },
       
   149                     "fr": {
       
   150                       "type": "text",
       
   151                       "analyzer": "french",
       
   152                       "search_analyzer": "french_search"
       
   153                     }
       
   154                   }
       
   155                 }
       
   156               }
       
   157             }
       
   158           }
       
   159         }
       
   160         
       
   161         PUT /onf_website/_mapping/_doc
       
   162         {
       
   163           "properties": {
       
   164             "link": {
       
   165                 "type": "object",
       
   166                 "properties": {
       
   167                     "title": {
       
   168                         "type": "object",
       
   169                         "properties": {
       
   170                             "en": {
       
   171                                 "type": "text"
       
   172                             },
       
   173                             "fr": {
       
   174                                 "type": "text",
       
   175                                 "analyzer": "french",
       
   176                                 "search_analyzer": "french_search"
       
   177                             }
       
   178                         }
       
   179                     },
       
   180                     "description": {
       
   181                         "type": "object",
       
   182                         "properties": {
       
   183                             "en": {
       
   184                                 "type": "text"
       
   185                             },
       
   186                             "fr": {
       
   187                                 "type": "text",
       
   188                                 "analyzer": "french",
       
   189                                 "search_analyzer": "french_search"
       
   190                             }
       
   191                         }
       
   192                     }
       
   193                 }
       
   194             }
       
   195           }
       
   196         }
       
   197         
       
   198         
       
   199         Update index mappings:
    64         Update index mappings:
   200         ======================
    65         ======================
   201         
    66         
   202         PUT /onf_website_v2
    67         PUT /pyams-v2
   203         {... index_settings ...}
    68         {... index_settings ...}
   204         
    69         
   205         POST /_reindex
    70         POST /_reindex
   206         {
    71         {
   207             "source": {
    72             "source": {
   208                 "index": "onf_website-v1",
    73                 "index": "pyams-v1",
   209                 "size": 10
    74                 "size": 10
   210             },
    75             },
   211             "dest": {
    76             "dest": {
   212                 "index": "onf_website-v2",
    77                 "index": "pyams-v2",
   213                 "pipeline": "attachment"
    78                 "pipeline": "attachment"
   214             }
    79             }
   215         }
    80         }
   216         
    81         
   217         DELETE /onf_website
    82         DELETE /pyams
   218         
    83         
   219         POST /_aliases
    84         POST /_aliases
   220         {
    85         {
   221             "actions": {
    86             "actions": {
   222                 "add": {
    87                 "add": {
   223                     "index": "onf_website-v2",
    88                     "index": "pyams-v2",
   224                     "alias": "onf_website"
    89                     "alias": "pyams"
   225                 }
    90                 }
   226             }
    91             }
   227         }
    92         }
   228         
    93         
   229         
    94         
   230         
       
   231         History
    95         History
   232         =======
    96         =======
       
    97         
       
    98         0.1.25
       
    99         ------
       
   100          - updated mappings and index info to get workflow visible publication date
   233         
   101         
   234         0.1.24
   102         0.1.24
   235         ------
   103         ------
   236          - use workflow "visible" states instead of "published" states
   104          - use workflow "visible" states instead of "published" states
   237         
   105