inetstudio/articles

Package for articles

v8.0.0 2020-09-21 08:48 UTC

This package is auto-updated.

Last update: 2020-11-21 09:42:24 UTC


README

curl -X PUT "localhost:9200/app_index_articles" -H 'Content-Type: application/json' -d'
{
   "mappings":{
      "properties":{
          "type": {
             "type":"keyword"
          },            
          "id":{
             "type":"integer"
          },
          "is_published": {
             "type":"boolean"
          },
          "classifiers": {
          	"type":"integer"
          },            
          "title":{
             "type":"text"
          },
          "description":{
             "type":"text"
          },
          "content":{
             "type":"text"
          },
          "publish_date": {
             "type":"date"
          },
          "tags":{
             "type":"nested"
          },
          "products":{
             "type":"nested"
          },
          "ingredients":{
             "type":"nested"
          }            
       } 
   }
}
'