-
-
Save D-Ne0/10a479fd4b6c1c0f4c93 to your computer and use it in GitHub Desktop.
Mapping for ChannelLogs index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"properties": { | |
"_id": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"channel_id": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"channel_name": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"server_id": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"server_name": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"message": { | |
"type": "string", | |
"analyzer": "standard" | |
}, | |
"raw_message": { | |
"type": "object", | |
"enabled": false | |
}, | |
"nick": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"from": { | |
"type": "string", | |
"index": "not_analyzed", | |
"null_value": "" | |
}, | |
"from_user": { | |
"type": "string", | |
"index": "not_analyzed", | |
"null_value": "" | |
}, | |
"from_user_id": { | |
"type": "string", | |
"index": "not_analyzed", | |
"null_value": "" | |
}, | |
"created": { | |
"type": "date", | |
"index": "not_analyzed" | |
}, | |
"last_updated": { | |
"type": "date", | |
"index": "not_analyzed" | |
}, | |
"type": { | |
"type": "string", | |
"index": "not_analyzed", | |
"index_name": "msg_type" | |
}, | |
"user": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"user_id": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"global": { | |
"type": "boolean", | |
"index": "not_analyzed" | |
}, | |
"status": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"not_for_user": { | |
"type": "string", | |
"index": "not_analyzed" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to apply this mapping?
curl -XPOST 'http://localhost:9200/channel_logs?pretty'
curl -XPOST 'http://localhost:9200/channel_logs/log/_mapping?pretty' -d '{json-mapping-here}'