Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #170 from o19s/schema-update
Browse files Browse the repository at this point in the history
schema updates
  • Loading branch information
epugh authored May 29, 2024
2 parents 928180e + 97ff2d3 commit 08a0174
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 123 deletions.
117 changes: 24 additions & 93 deletions src/main/resources/events-mapping.json
Original file line number Diff line number Diff line change
@@ -1,114 +1,45 @@
{
"properties": {
"action_name": {
"type": "keyword"
},
"user_id": {
"type": "keyword"
},
"query_id": {
"type": "keyword"
},
"page_id": {
"type": "keyword"
},
"message": {
"type": "keyword"
},
"message_type": {
"type": "keyword"
},
"application": { "type": "keyword", "ignore_above": 256 },
"action_name": { "type": "keyword", "ignore_above": 100 },
"client_id": { "type": "keyword", "ignore_above": 100 },
"message": { "type": "keyword", "ignore_above": 1024 },
"message_type": { "type": "keyword", "ignore_above": 100 },
"timestamp": {
"type": "date",
"format":"rfc3339_lenient||epoch_millis",
"ignore_malformed": true,
"doc_values": true
},
"event_attributes": {
"dynamic": true,
"properties": {
"user_name": {
"type": "keyword"
},
"user_id": {
"type": "keyword"
},
"email": {
"type": "keyword"
},
"price": {
"type": "float"
},
"ip": {
"type": "ip",
"ignore_malformed": true
},
"browser": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"position": {
"properties": {
"ordinal": {
"type": "integer"
},
"x": {
"type": "integer"
},
"y": {
"type": "integer"
},
"page_depth": {
"type": "integer"
},
"scroll_depth": {
"type": "integer"
},
"trail": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
"ordinal": { "type": "integer" },
"x": { "type": "integer" },
"y": { "type": "integer" },
"page_depth": { "type": "integer" },
"scroll_depth": { "type": "integer" },
"trail": { "type": "text",
"fields": { "keyword": { "type": "keyword", "ignore_above": 256 }
}
}
}
},
"object": {
"properties": {
"key_value": {
"type": "keyword"
},
"object_id": {
"type": "keyword"
},
"object_type": {
"type": "keyword"
},
"transaction_id": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"description": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"to_user_id": {
"type": "keyword"
},
"object_detail": {
"type": "text"
}
"internal_id": { "type": "keyword" },
"object_id": { "type": "keyword", "ignore_above": 256 },
"object_id_field": { "type": "keyword", "ignore_above": 100 },
"name": { "type": "keyword", "ignore_above": 256 },
"description": { "type": "text",
"fields": { "keyword": { "type": "keyword", "ignore_above": 256 } }
},
"object_detail": { "type": "flat_object" }
}
}
}
}
}
}
}
41 changes: 11 additions & 30 deletions src/main/resources/queries-mapping.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
{
"dynamic": false,
"properties": {
"timestamp": {
"type": "date"
},
"query_id": {
"type": "keyword"
},
"query": {
"type": "text"
},
"query_response_id": {
"type": "keyword"
},
"query_response_object_ids": {
"type": "keyword"
},
"client_id": {
"type": "keyword"
},
"user_query": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"query_attributes": {
"type": "flat_object"
}
"timestamp": { "type": "date" },
"query_id": { "type": "keyword", "ignore_above": 100 },
"query": { "type": "flat_object" },
"query_response_id": { "type": "keyword", "ignore_above": 100 },
"query_response_hit_ids": { "type": "keyword" },
"user_query": { "type": "text",
"fields": { "keyword": { "type": "keyword", "ignore_above": 256 } }
},
"query_attributes": { "type": "flat_object" },
"client_id": { "type": "keyword", "ignore_above": 100 }
}
}
}

0 comments on commit 08a0174

Please sign in to comment.