-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[WIP] Rough draft for chat index templates #125989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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": [ | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "content_semantic" | ||
| ] | ||
| }, | ||
| "description": { | ||
| "type": "text", | ||
| "copy_to": [ | ||
| "content_semantic" | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
| }, | ||
| "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": { | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "keyword" | ||
| }, | ||
| "created_at": { | ||
| "type": "date" | ||
| }, | ||
| "updated_at": { | ||
| "type": "date" | ||
| }, | ||
| "metadata": { | ||
| "dynamic": true, | ||
| "properties": {} | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "template": { | ||
| "mappings": { | ||
| "properties": { | ||
| "comments": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One thing that I conveniently skipped in the POC is attachments... comments can have attachments, for sure in sources like github and salesforce Can we add minimal template for attachment, have a list of attachments in the comment?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah good call. We probably need attachments as a top-level field, too. |
||
| "type": "nested", | ||
| "properties": { | ||
| "id": { | ||
| "type": "keyword" | ||
| }, | ||
| "author": { | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "properties": { | ||
| "email": { | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "keyword" | ||
| }, | ||
| "name": { | ||
| "type": "text", | ||
| "fields": { | ||
| "keyword": { | ||
| "type": "keyword" | ||
| } | ||
| } | ||
| }, | ||
| "id": { | ||
| "type": "keyword" | ||
| } | ||
| } | ||
| }, | ||
| "content": { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Semantic text for comment text? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ++ comment content might be elaborate enough to be a good fit for semantic text
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kderusso what would be your suggestion on how to solve this today?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a good question. I would need to verify if
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be very nice to be able to do a semantic query where I know I'd posted a message about ____ but can't remember the exact phrasing used, but don't want threads where other people were talking about ____. It's a real shame that we can't do nested semantic_text. :/ |
||
| "type": "text" | ||
| }, | ||
| "replies_to": { | ||
| "type": "keyword" | ||
| }, | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "created_at": { | ||
| "type": "date" | ||
| }, | ||
| "updated_at": { | ||
| "type": "date" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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": { | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "properties": { | ||
| "name": { | ||
| "type": "text", | ||
| "fields": { | ||
| "keyword": { | ||
| "type": "keyword" | ||
| } | ||
| } | ||
| }, | ||
| "email_address": { | ||
| "type": "keyword" | ||
| }, | ||
| "id": { | ||
| "type": "keyword" | ||
| } | ||
| } | ||
| }, | ||
| "resolved_at": { | ||
| "type": "date" | ||
| }, | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "urgency": { | ||
| "type": "keyword" | ||
| } | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "composed_of": ["base-template", "comments-template"], | ||
seanstory marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "version": 1 | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.