Skip to content

Instantly share code, notes, and snippets.

@thesurlydev
Created November 22, 2011 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thesurlydev/1385933 to your computer and use it in GitHub Desktop.
Save thesurlydev/1385933 to your computer and use it in GitHub Desktop.
ES thread mapping
mappings: {
_default_: {
properties: {
tags: {
index_name: tag
type: integer
}
threadID: {
type: integer
}
postDates: {
index_name: postDate
format: dateOptionalTime
type: date
}
status: {
type: object
}
subject: {
type: string
}
postID: {
type: integer
}
readAccess: {
type: object
}
message: {
type: string
}
author: {
properties: {
accountID: {
type: integer
}
authorUsername: {
type: string
}
userAccessTypeBit: {
type: integer
}
companyID: {
type: integer
}
companyName: {
type: string
}
}
}
category: {
properties: {
categoryName: {
type: string
}
categoryID: {
type: integer
}
categoryTypeID: {
type: integer
}
}
}
statusBit: {
type: integer
}
resolutionOwner: {
type: object
}
replies: {
type: integer
}
internalPriority: {
type: object
}
lastUpdatedBy: {
type: object
}
owner: {
properties: {
accountID: {
type: integer
}
accountNotesStatusID: {
type: integer
}
userAccessTypeBit: {
type: integer
}
companyID: {
type: integer
}
companyName: {
type: string
}
ownerUsername: {
type: string
}
}
}
dateCreated: {
format: dateOptionalTime
type: date
}
externalPriority: {
type: object
}
lastPostDate: {
index: not_analyzed
type: string
}
postGUID: {
type: string
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment