Skip to content

Instantly share code, notes, and snippets.

@srkirkland
Created July 16, 2014 22:26
Show Gist options
  • Save srkirkland/a8490ea25aa623cf16d7 to your computer and use it in GitHub Desktop.
Save srkirkland/a8490ea25aa623cf16d7 to your computer and use it in GitHub Desktop.
json result from elasticsearch
{
_shards: {
Total: 1,
Successful: 1,
Failed: 0
},
hits: {
total: 1,
max_score: 1,
hits: [
{
fields: null,
_source: {
tags: [
"animals",
"horses",
"dogs"
],
id: "4a2aed5b-5a24-418e-a5a5-a36a00f85501",
name: "Animal Sciences",
code: "AANS"
},
_index: "give",
_score: 1,
_type: "Area",
_version: null,
_id: "4a2aed5b-5a24-418e-a5a5-a36a00f85501",
sort: null,
highlight: null,
Highlights: {
},
_explanation: null,
PartialFields: null
}
]
},
facets: null,
suggest: null,
took: 3,
_scroll_id: null,
Total: 1,
MaxScore: 1,
Documents: [
{
tags: [
"animals",
"horses",
"dogs"
],
id: "4a2aed5b-5a24-418e-a5a5-a36a00f85501",
name: "Animal Sciences",
code: "AANS"
}
],
DocumentsWithMetaData: [
{
fields: null,
_source: {
tags: [
"animals",
"horses",
"dogs"
],
id: "4a2aed5b-5a24-418e-a5a5-a36a00f85501",
name: "Animal Sciences",
code: "AANS"
},
_index: "give",
_score: 1,
_type: "Area",
_version: null,
_id: "4a2aed5b-5a24-418e-a5a5-a36a00f85501",
sort: null,
highlight: null,
Highlights: {
},
_explanation: null,
PartialFields: null
}
],
Highlights: {
},
IsValid: true,
ConnectionStatus: {
Success: true,
Error: null,
RequestMethod: "POST",
RequestUrl: "https://2xRgnaovbkCZivojvXGrQnRLDMwBgCkW:@ucdavis.east-us.azr.facetflow.io/give/_search",
Result: "{"_shards":{"total":1,"failed":0,"successful":1},"hits":{"total":1,"hits":[{"_type":"Area","_id":"4a2aed5b-5a24-418e-a5a5-a36a00f85501","_source":{"tags":["animals","horses","dogs"],"id":"4a2aed5b-5a24-418e-a5a5-a36a00f85501","name":"AnimalSciences","code":"AANS"},"_index":"give","_score":1.0}],"max_score":1.0},"timed_out":false,"took":3}",
Request: "{ "size": 20, "filter": { "term": { "tags": "dogs" } } }"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment