diff --git a/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/base-template.json b/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/base-template.json new file mode 100644 index 0000000000000..3572a9584220a --- /dev/null +++ b/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/base-template.json @@ -0,0 +1,86 @@ +{ + "template": { + "mappings": { + "properties": { + "id": { + "type": "keyword" + }, + "_allow_access_control": { + "type": "keyword" + }, + "_deny_access_control": { + "type": "keyword" + }, + "title": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword" + } + }, + "copy_to": [ + "content_semantic" + ] + }, + "description": { + "type": "text", + "copy_to": [ + "content_semantic" + ] + }, + "content": { + "type": "text", + "copy_to": [ + "content_semantic" + ] + }, + "content_semantic": { + "type": "semantic_text" + }, + "url": { + "type": "keyword" + }, + "type": { + "type": "keyword" + }, + "provenance": { + "type": "keyword" + }, + "owner": { + "properties": { + "name": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword" + } + } + }, + "email_address": { + "type": "keyword" + }, + "id": { + "type": "keyword" + } + } + }, + "keywords": { + "type": "text" + }, + "tags": { + "type": "keyword" + }, + "created_at": { + "type": "date" + }, + "updated_at": { + "type": "date" + }, + "metadata": { + "dynamic": true, + "properties": {} + } + } + } + } +} diff --git a/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/comments-template.json b/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/comments-template.json new file mode 100644 index 0000000000000..bc24f927c2cd3 --- /dev/null +++ b/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/comments-template.json @@ -0,0 +1,46 @@ +{ + "template": { + "mappings": { + "properties": { + "comments": { + "type": "nested", + "properties": { + "id": { + "type": "keyword" + }, + "author": { + "properties": { + "email": { + "type": "keyword" + }, + "name": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword" + } + } + }, + "id": { + "type": "keyword" + } + } + }, + "content": { + "type": "text" + }, + "replies_to": { + "type": "keyword" + }, + "created_at": { + "type": "date" + }, + "updated_at": { + "type": "date" + } + } + } + } + } + } +} diff --git a/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/support-template.json b/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/support-template.json new file mode 100644 index 0000000000000..1509b76966dfe --- /dev/null +++ b/x-pack/plugin/core/template-resources/src/main/resources/entsearch/connector/chat/support-template.json @@ -0,0 +1,67 @@ +{ + "index_patterns": ["content-chat-support-v1-*"], + "template": { + "mappings": { + "properties": { + "metadata": { + "properties": { + "support": { + "properties": { + "status": { + "type": "keyword" + }, + "assignee": { + "properties": { + "name": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword" + } + } + }, + "email_address": { + "type": "keyword" + }, + "id": { + "type": "keyword" + } + } + }, + "category": { + "type": "keyword" + }, + "customer": { + "properties": { + "name": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword" + } + } + }, + "email_address": { + "type": "keyword" + }, + "id": { + "type": "keyword" + } + } + }, + "resolved_at": { + "type": "date" + }, + "urgency": { + "type": "keyword" + } + } + } + } + } + } + } + }, + "composed_of": ["base-template", "comments-template"], + "version": 1 +}