Skip to content

Instantly share code, notes, and snippets.

@bevans88
Created April 25, 2018 13:17
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 bevans88/7c183993ddac8647999f02811c178b19 to your computer and use it in GitHub Desktop.
Save bevans88/7c183993ddac8647999f02811c178b19 to your computer and use it in GitHub Desktop.
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 3,
"max_score": 1,
"hits": [{
"_index": "index1",
"_type": "_doc",
"_id": "8b257dad44711cfae354a06fca6ae95b71d00223",
"_score": 1,
"_company": {
"id": "8b257dad44711cfae354a06fca6ae95b71d00223",
"count": 2,
"size": 20000,
"cost": 0,
"resource": {
"1": {
"id": "a0679f90-5ecc-5158-a76d-dbb9ed581f86",
"name": "1",
"nameId": "1 @#@ a0679f90-5ecc-5158-a76d-dbb9ed581f86"
},
"2": {
"id": "056c5d44-30ad-44f0-b555-2e6aed746b55",
"name": "2",
"nameId": "2 @#@ 056c5d44-30ad-44f0-b555-2e6aed746b55"
},
"3": {
"id": "d5c30437-45df-460e-a126-3bb4b0dba057",
"name": "3",
"nameId": "3 @#@ d5c30437-45df-460e-a126-3bb4b0dba057"
},
"4": {
"id": "1b3e670f-7a55-484f-ae38-23b103cec6a3",
"name": "4",
"nameId": "4 @#@ 1b3e670f-7a55-484f-ae38-23b103cec6a3"
}
},
"stringFacet": {
"a": {
"id": "aId",
"name": "aName",
"nameId": "aName @#@ aId"
},
"b": {
"id": "bId",
"name": "bName",
"nameId": "bName @#@ bId"
}
},
"intFacet": {
"range": {
"id": 1,
"name": "0 to 1",
"nameId": "0 to 1 @#@ 1"
},
"date1": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
},
"type": {
"id": 6,
"name": "Type1",
"nameId": "Type1 @#@ 6"
},
"date2": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
},
"date3": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
}
},
"firstNested": [{
"company": "Company1",
"names": [
"firstNested_name1",
"firstNested_name2"
],
"namesCombination": "firstNested_name1 @#@ firstNested_name2",
"count": 1,
"size": 10000,
"cost": 0,
"secondNested": [{
"names": [
"secondNested_name1",
"secondNested_name3",
"secondNested_name2",
"secondNested_name4"
],
"namesCombination": "secondNested_name1 @#@ secondNested_name2 @#@ secondNested_name3 @#@ secondNested_name4",
"count": 1,
"size": 10000,
"cost": 0
}
]
}, {
"company": "Company2",
"names": [
"firstNested_name5"
],
"namesCombination": "firstNested_name5",
"count": 1,
"size": 10000,
"cost": 0,
"secondNested": [{
"names": [
"secondNested_nameX"
],
"namesCombination": "secondNested_nameX",
"count": 1,
"size": 10000,
"cost": 0
}
]
}
]
}
}, {
"_index": "index1",
"_type": "_doc",
"_id": "85dd427f31d7492c5676948d041573fb8ff499a5",
"_score": 1,
"_company": {
"id": "85dd427f31d7492c5676948d041573fb8ff499a5",
"count": 2,
"size": 20,
"cost": 0,
"resource": {
"1": {
"id": "a0679f90-5ecc-5158-a76d-dbb9ed581f86",
"name": "1",
"nameId": "1 @#@ a0679f90-5ecc-5158-a76d-dbb9ed581f86"
},
"2": {
"id": "056c5d44-30ad-44f0-b555-2e6aed746b55",
"name": "2",
"nameId": "2 @#@ 056c5d44-30ad-44f0-b555-2e6aed746b55"
},
"3": {
"id": "d5c30437-45df-460e-a126-3bb4b0dba057",
"name": "3",
"nameId": "3 @#@ d5c30437-45df-460e-a126-3bb4b0dba057"
},
"4": {
"id": "1b3e670f-7a55-484f-ae38-23b103cec6a3",
"name": "4",
"nameId": "4 @#@ 1b3e670f-7a55-484f-ae38-23b103cec6a3"
}
},
"stringFacet": {
"a": {
"id": "aId",
"name": "aName",
"nameId": "aName @#@ aId"
},
"b": {
"id": "bId",
"name": "bName",
"nameId": "bId @#@ bName"
}
},
"intFacet": {
"range": {
"id": 1,
"name": "0 to 10",
"nameId": "0 to 10 @#@ 1"
},
"date1": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
},
"type": {
"id": 1,
"name": "Type2",
"nameId": "Type2 @#@ 1"
},
"date2": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
},
"date3": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
}
},
"firstNested": [{
"company": "Company2",
"names": [
"firstNested_name4"
],
"namesCombination": "firstNested_name4",
"count": 1,
"size": 10,
"cost": 0,
"secondNested": [{
"names": [
"secondNested_nameA",
"secondNested_nameB"
],
"namesCombination": "secondNested_nameA @#@ secondNested_nameB",
"count": 1,
"size": 10,
"cost": 0
}
]
}, {
"company": "Company1",
"names": [
"firstNested_name1",
"firstNested_name2"
],
"namesCombination": "firstNested_name1 @#@ firstNested_name2",
"count": 1,
"size": 10,
"cost": 0,
"secondNested": [{
"names": [
"secondNested_name1",
"secondNested_name3",
"secondNested_name2",
"secondNested_name4"
],
"namesCombination": "secondNested_name1 @#@ secondNested_name2 @#@ secondNested_name3 @#@ secondNested_name4",
"count": 1,
"size": 10,
"cost": 0
}
]
}
]
}
}, {
"_index": "index1",
"_type": "_doc",
"_id": "5a5ad8be80f4913e3a7f564fb3dc20b3ab855382",
"_score": 1,
"_company": {
"id": "5a5ad8be80f4913e3a7f564fb3dc20b3ab855382",
"count": 2,
"size": 19998,
"cost": 0,
"resource": {
"1": {
"id": "a0679f90-5ecc-5158-a76d-dbb9ed581f86",
"name": "1",
"nameId": "1 @#@ a0679f90-5ecc-5158-a76d-dbb9ed581f86"
},
"2": {
"id": "0c136f0a-1d08-4caf-b527-b08bbad1dce8",
"name": "2",
"nameId": "2 @#@ 0c136f0a-1d08-4caf-b527-b08bbad1dce8"
},
"3": {
"id": "d5c30437-45df-460e-a126-3bb4b0dba057",
"name": "3",
"nameId": "3 @#@ d5c30437-45df-460e-a126-3bb4b0dba057"
},
"4": {
"id": "1b3e670f-7a55-484f-ae38-23b103cec6a3",
"name": "4",
"nameId": "4 @#@ 1b3e670f-7a55-484f-ae38-23b103cec6a3"
}
},
"stringFacet": {
"a": {
"id": "aId",
"name": "aName",
"nameId": "aName @#@ aId"
},
"b": {
"id": "bId",
"name": "bName",
"nameId": "bName @#@ bId"
}
},
"intFacet": {
"range": {
"id": 1,
"name": "0 to 10",
"nameId": "0 to 10 @#@ 1"
},
"date1": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
},
"type": {
"id": 16,
"name": "Type3",
"nameId": "Type3 @#@ 16"
},
"date2": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
},
"date3": {
"id": 1,
"name": "1 week",
"nameId": "1 week @#@ 1"
}
},
"firstNested": [{
"company": "Company2",
"names": [
"firstNested_name6"
],
"namesCombination": "firstNested_name6",
"count": 1,
"size": 9999,
"cost": 0,
"secondNested": [{
"names": [
"secondNested_nameABC",
"secondNested_nameXYZ"
],
"namesCombination": "secondNested_nameABC @#@ secondNested_nameXYZ",
"count": 1,
"size": 9999,
"cost": 0
}
]
}, {
"company": "Company1",
"names": [
"firstNested_name3",
"firstNested_name4"
],
"namesCombination": "firstNested_name3 @#@ firstNested_name4",
"count": 1,
"size": 9999,
"cost": 0,
"secondNested": [{
"names": [
"secondNested_name1",
"secondNested_nameA",
"secondNested_name2",
"secondNested_nameB",
"secondNested_name5"
],
"namesCombination": "secondNested_name1 @#@ secondNested_name2 @#@ secondNested_name5 @#@ secondNested_nameA @#@ secondNested_nameB",
"count": 1,
"size": 9999,
"cost": 0
}
]
}
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment