Created
March 27, 2021 17:47
-
-
Save ejlevin1/2d79a8d1fd35955a2e14c6b814adb615 to your computer and use it in GitHub Desktop.
ElasticSearch Quick Example Files
This file contains hidden or 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
| { | |
| "section-launches": { | |
| "aliases": {}, | |
| "mappings": { | |
| "properties": { | |
| "processKey": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "processes": { | |
| "type": "nested", | |
| "properties": { | |
| "activities": { | |
| "type": "nested", | |
| "properties": { | |
| "actions": { | |
| "type": "nested", | |
| "properties": { | |
| "completionNeeds": { | |
| "properties": { | |
| "key": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "schema": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "id": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "key": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "name": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "primary": { | |
| "type": "boolean" | |
| } | |
| } | |
| }, | |
| "assignee": { | |
| "properties": { | |
| "group": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "user": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "created": { | |
| "type": "date" | |
| }, | |
| "phase": { | |
| "properties": { | |
| "key": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "name": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "status": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "updated": { | |
| "type": "date" | |
| } | |
| } | |
| }, | |
| "data": { | |
| "properties": { | |
| "attemptAutoLaunch": { | |
| "type": "boolean" | |
| }, | |
| "lmsInformation": { | |
| "properties": { | |
| "id": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "orgId": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "products": { | |
| "type": "nested", | |
| "properties": { | |
| "description": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "id": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "identifiers": { | |
| "properties": { | |
| "identifier": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "type": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "name": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "type": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "vendor": { | |
| "properties": { | |
| "id": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "name": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "sectionInformation": { | |
| "properties": { | |
| "course": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "department": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "section": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| }, | |
| "term": { | |
| "type": "text", | |
| "fields": { | |
| "keyword": { | |
| "type": "keyword", | |
| "ignore_above": 256 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "settings": { | |
| "index": { | |
| "creation_date": "1616807040755", | |
| "number_of_shards": "1", | |
| "number_of_replicas": "1", | |
| "uuid": "atJ7o5sVTeq5Kcq3bVDshg", | |
| "version": { | |
| "created": "7090399" | |
| }, | |
| "provided_name": "section-launches" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or 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
| { | |
| "took": 3, | |
| "timed_out": false, | |
| "_shards": { | |
| "total": 1, | |
| "successful": 1, | |
| "skipped": 0, | |
| "failed": 0 | |
| }, | |
| "hits": { | |
| "total": { | |
| "value": 6, | |
| "relation": "eq" | |
| }, | |
| "max_score": 1.0, | |
| "hits": [ | |
| { | |
| "_index": "section-launches", | |
| "_type": "_doc", | |
| "_id": "8gY4cXgBoCECusmPSEuv", | |
| "_score": 1.0, | |
| "_source": { | |
| "processKey": "section-launch-MATH-101-101", | |
| "processes": [ | |
| { | |
| "data": { | |
| "attemptAutoLaunch": true, | |
| "sectionInformation": { | |
| "section": "101", | |
| "course": "101", | |
| "department": "MATH", | |
| "term": "Spring 2021" | |
| }, | |
| "products": [] | |
| }, | |
| "activities": [ | |
| { | |
| "status": "Open", | |
| "assignee": { | |
| "user": "nic.mulkey@redshelf.com" | |
| }, | |
| "actions": [ | |
| { | |
| "primary": false, | |
| "id": "section-launch#b69abf55-8e98-11eb-8055-22f93b3e08b1", | |
| "key": "section-launch#kickoff-adoptions", | |
| "name": "Kick-off Adoptions", | |
| "completionNeeds": { | |
| "key": "kickoff-adoptions-form-key", | |
| "schema": "" | |
| } | |
| }, | |
| { | |
| "primary": false, | |
| "id": "section-launch#b69abf55-8e98-11eb-8055-22f93b3e08b1#escalation_cancel_section", | |
| "key": "section-launch#kickoff-adoptions#escalation_cancel_section", | |
| "name": "Cancel Section Launch", | |
| "completionNeeds": { | |
| "key": "kickoff-adoptions-form-key", | |
| "schema": "rejection-reason-required" | |
| } | |
| } | |
| ], | |
| "created": "0001-01-01T00:00:00", | |
| "updated": "0001-01-01T00:00:00" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_index": "section-launches", | |
| "_type": "_doc", | |
| "_id": "8wY4cXgBoCECusmPbktu", | |
| "_score": 1.0, | |
| "_source": { | |
| "processKey": "section-launch-MATH-101-102", | |
| "processes": [ | |
| { | |
| "data": { | |
| "attemptAutoLaunch": true, | |
| "sectionInformation": { | |
| "section": "102", | |
| "course": "101", | |
| "department": "MATH", | |
| "term": "Spring 2021" | |
| }, | |
| "products": [] | |
| }, | |
| "activities": [ | |
| { | |
| "status": "Open", | |
| "assignee": { | |
| "user": "nic.mulkey@redshelf.com" | |
| }, | |
| "actions": [ | |
| { | |
| "primary": false, | |
| "id": "section-launch#bcb4a339-8e98-11eb-8055-22f93b3e08b1", | |
| "key": "section-launch#kickoff-adoptions", | |
| "name": "Kick-off Adoptions", | |
| "completionNeeds": { | |
| "key": "kickoff-adoptions-form-key", | |
| "schema": "" | |
| } | |
| }, | |
| { | |
| "primary": false, | |
| "id": "section-launch#bcb4a339-8e98-11eb-8055-22f93b3e08b1#escalation_cancel_section", | |
| "key": "section-launch#kickoff-adoptions#escalation_cancel_section", | |
| "name": "Cancel Section Launch", | |
| "completionNeeds": { | |
| "key": "kickoff-adoptions-form-key", | |
| "schema": "rejection-reason-required" | |
| } | |
| } | |
| ], | |
| "created": "0001-01-01T00:00:00", | |
| "updated": "0001-01-01T00:00:00" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_index": "section-launches", | |
| "_type": "_doc", | |
| "_id": "9AY4cXgBoCECusmPgEv-", | |
| "_score": 1.0, | |
| "_source": { | |
| "processKey": "section-launch-MATH-101-103", | |
| "processes": [ | |
| { | |
| "data": { | |
| "attemptAutoLaunch": true, | |
| "sectionInformation": { | |
| "section": "103", | |
| "course": "101", | |
| "department": "MATH", | |
| "term": "Spring 2021" | |
| }, | |
| "products": [] | |
| }, | |
| "activities": [ | |
| { | |
| "status": "Open", | |
| "assignee": { | |
| "user": "nic.mulkey@redshelf.com" | |
| }, | |
| "actions": [ | |
| { | |
| "primary": false, | |
| "id": "section-launch#bf7549fd-8e98-11eb-8055-22f93b3e08b1", | |
| "key": "section-launch#kickoff-adoptions", | |
| "name": "Kick-off Adoptions", | |
| "completionNeeds": { | |
| "key": "kickoff-adoptions-form-key", | |
| "schema": "" | |
| } | |
| }, | |
| { | |
| "primary": false, | |
| "id": "section-launch#bf7549fd-8e98-11eb-8055-22f93b3e08b1#escalation_cancel_section", | |
| "key": "section-launch#kickoff-adoptions#escalation_cancel_section", | |
| "name": "Cancel Section Launch", | |
| "completionNeeds": { | |
| "key": "kickoff-adoptions-form-key", | |
| "schema": "rejection-reason-required" | |
| } | |
| } | |
| ], | |
| "created": "0001-01-01T00:00:00", | |
| "updated": "0001-01-01T00:00:00" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "_index": "section-launches", | |
| "_type": "_doc", | |
| "_id": "9QY4cXgBoCECusmPkEvq", | |
| "_score": 1.0, | |
| "_source": { | |
| "processKey": "section-launch-MATH-101-104", | |
| "processes": [] | |
| } | |
| }, | |
| { | |
| "_index": "section-launches", | |
| "_type": "_doc", | |
| "_id": "9gY4cXgBoCECusmPqUsY", | |
| "_score": 1.0, | |
| "_source": { | |
| "processKey": "section-launch-MATH-101-104", | |
| "processes": [ | |
| { | |
| "data": { | |
| "attemptAutoLaunch": true, | |
| "sectionInformation": { | |
| "section": "104", | |
| "course": "101", | |
| "department": "MATH", | |
| "term": "Spring 2021" | |
| }, | |
| "products": [ | |
| { | |
| "name": "My Math Lab", | |
| "type": "courseware", | |
| "vendor": { | |
| "name": "Pearson" | |
| }, | |
| "identifiers": [] | |
| } | |
| ] | |
| }, | |
| "activities": [ | |
| { | |
| "status": "Open", | |
| "assignee": { | |
| "user": "" | |
| }, | |
| "actions": [ | |
| { | |
| "primary": false, | |
| "id": "section-launch#c1f73a14-8e98-11eb-8055-22f93b3e08b1", | |
| "key": "section-launch#task-kickoff-section-launch", | |
| "name": "Begin Section Launch", | |
| "completionNeeds": { | |
| "key": "begin-section-launch-form-key", | |
| "schema": "task-kickoff-section-launch" | |
| } | |
| } | |
| ], | |
| "created": "0001-01-01T00:00:00", | |
| "updated": "0001-01-01T00:00:00" | |
| } | |
| ] | |
| }, | |
| { | |
| "data": { | |
| "attemptAutoLaunch": true, | |
| "sectionInformation": { | |
| "section": "104", | |
| "course": "101", | |
| "department": "MATH", | |
| "term": "Spring 2021" | |
| }, | |
| "products": [ | |
| { | |
| "name": "My Math Lab", | |
| "type": "courseware", | |
| "vendor": { | |
| "name": "Pearson" | |
| }, | |
| "identifiers": [] | |
| } | |
| ] | |
| }, | |
| "activities": [ | |
| { | |
| "status": "Open", | |
| "assignee": { | |
| "user": "terry@redshelf.com" | |
| }, | |
| "actions": [ | |
| { | |
| "primary": false, | |
| "id": "product-fulfillment#c5b6d96e-8e98-11eb-8055-22f93b3e08b1", | |
| "key": "product-fulfillment#UserTask_0pppera", | |
| "name": "Request Vendor" | |
| }, | |
| { | |
| "primary": false, | |
| "id": "product-fulfillment#c5b6d96e-8e98-11eb-8055-22f93b3e08b1#unfulfillable", | |
| "key": "product-fulfillment#UserTask_0pppera#unfulfillable", | |
| "name": "Unfulfillable", | |
| "completionNeeds": { | |
| "key": "", | |
| "schema": "approve-product-adoption-product-rejected" | |
| } | |
| } | |
| ], | |
| "created": "0001-01-01T00:00:00", | |
| "updated": "0001-01-01T00:00:00" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| "aggregations": { | |
| "all-processes": { | |
| "doc_count": 7, | |
| "all-activities": { | |
| "doc_count": 7, | |
| "all-actions": { | |
| "doc_count": 12, | |
| "names": { | |
| "doc_count_error_upper_bound": 0, | |
| "sum_other_doc_count": 0, | |
| "buckets": [ | |
| { | |
| "key": "Cancel Section Launch", | |
| "doc_count": 3 | |
| }, | |
| { | |
| "key": "Kick-off Adoptions", | |
| "doc_count": 3 | |
| }, | |
| { | |
| "key": "Begin Section Launch", | |
| "doc_count": 2 | |
| }, | |
| { | |
| "key": "Request Vendor", | |
| "doc_count": 2 | |
| }, | |
| { | |
| "key": "Unfulfillable", | |
| "doc_count": 2 | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment