schema

  • Message Contents
  • msg.content.type = "text" // or edit
  • msg.content.text.body
  • User
  • msg.sender.username
  • Topics
  • msg.channel.topic_name
  • Teams
  • msg.channel.name
  • Topic Mentions
  • msg.channel_mention (Either none, here or all)
  • msg.channel_name_mentions
  • Team Mentions
  • msg.content.text.teamMentions
  • User Mentions
  • msg.content.type = "text"
  • msg.at_mention_usernames
  • Replied
  • msg.content.type = "text"
  • msg.content.text.replyTo
  • Reactions
  • msg.reactions.{{Reaction Name}}
PUT keybase-*/_mapping
{
  "properties": {
    "msg.channel.topic_name": { 
      "type":     "text",
      "fielddata": true
    },
    "msg.content.type": { 
      "type":     "text",
      "fielddata": true
    },
    "msg.sender.username": { 
      "type":     "text",
      "fielddata": true
    },
    "msg.content.reaction.b": { 
      "type":     "text",
      "fielddata": true
    },
    "msg.channel.name": { 
      "type":     "text",
      "fielddata": true
    },
    "msg.content.text.body": { 
      "type":     "text",
      "fielddata": true
    },
    "msg.conversation_id": { 
      "type":     "text",
      "fielddata": true
    }
  }
}
PUT keybase-*
{
  "mappings": {
    "properties": {
      "msg.content.text.body": { "type": "text" }
    }
  }
}