* parse unsub mailTo or httpUrl and send to pubsub * save subscription from newsletter * fix tests
107 lines
2.0 KiB
JSON
107 lines
2.0 KiB
JSON
{
|
|
"aliases": {
|
|
"pages_alias": {}
|
|
},
|
|
"settings": {
|
|
"analysis": {
|
|
"analyzer": {
|
|
"strip_html_analyzer": {
|
|
"tokenizer": "standard",
|
|
"char_filter": ["html_strip"]
|
|
}
|
|
},
|
|
"normalizer": {
|
|
"lowercase_normalizer": {
|
|
"filter": ["lowercase"]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"mappings": {
|
|
"properties": {
|
|
"userId": {
|
|
"type": "keyword"
|
|
},
|
|
"title": {
|
|
"type": "text"
|
|
},
|
|
"author": {
|
|
"type": "text"
|
|
},
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"content": {
|
|
"type": "text",
|
|
"analyzer": "strip_html_analyzer"
|
|
},
|
|
"url": {
|
|
"type": "keyword"
|
|
},
|
|
"uploadFileId": {
|
|
"type": "keyword"
|
|
},
|
|
"pageType": {
|
|
"type": "keyword"
|
|
},
|
|
"slug": {
|
|
"type": "keyword"
|
|
},
|
|
"labels": {
|
|
"type": "nested",
|
|
"properties": {
|
|
"name": {
|
|
"type": "keyword",
|
|
"normalizer": "lowercase_normalizer"
|
|
}
|
|
}
|
|
},
|
|
"highlights": {
|
|
"type": "nested",
|
|
"properties": {
|
|
"id": {
|
|
"type": "keyword"
|
|
},
|
|
"userId": {
|
|
"type": "keyword"
|
|
},
|
|
"quote": {
|
|
"type": "text",
|
|
"analyzer": "strip_html_analyzer"
|
|
},
|
|
"annotation": {
|
|
"type": "text"
|
|
},
|
|
"createdAt": {
|
|
"type": "date"
|
|
},
|
|
"updatedAt": {
|
|
"type": "date"
|
|
}
|
|
}
|
|
},
|
|
"readingProgressPercent": {
|
|
"type": "float"
|
|
},
|
|
"readingProgressAnchorIndex": {
|
|
"type": "integer"
|
|
},
|
|
"createdAt": {
|
|
"type": "date"
|
|
},
|
|
"savedAt": {
|
|
"type": "date"
|
|
},
|
|
"archivedAt": {
|
|
"type": "date"
|
|
},
|
|
"siteName": {
|
|
"type": "text"
|
|
},
|
|
"subscription": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
}
|
|
}
|