-
-
Save dewski/76b7604faf3936c63a41 to your computer and use it in GitHub Desktop.
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
➜ Desktop ./lol | python -mjson.tool | |
./lol: line 1: -d: command not found | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 1803 100 1803 0 0 455k 0 --:--:-- --:--:-- --:--:-- 880k | |
{ | |
"_shards": { | |
"failed": 0, | |
"successful": 5, | |
"total": 5 | |
}, | |
"hits": { | |
"hits": [ | |
{ | |
"_id": "1", | |
"_index": "hire-dev", | |
"_score": 1.0, | |
"_source": { | |
"created_at": "2012-07-24T18:27:25Z", | |
"dribbble": "garrett", | |
"email": "garrett@github.com", | |
"github": "dewski", | |
"id": 1, | |
"linkedin": null, | |
"name": "Garrett Bjerkhoel", | |
"tag_list": [], | |
"twitter": "garrettb", | |
"type": "candidate", | |
"workflow_state": "archived" | |
}, | |
"_type": "candidate" | |
}, | |
{ | |
"_id": "6", | |
"_index": "hire-dev", | |
"_score": 1.0, | |
"_source": { | |
"created_at": "2012-07-31T19:03:00Z", | |
"dribbble": "", | |
"email": "asd@asd.com", | |
"github": "zizo", | |
"id": 6, | |
"linkedin": null, | |
"name": "asd", | |
"tag_list": [ | |
"ruby", | |
"ops" | |
], | |
"twitter": "zizo", | |
"type": "candidate", | |
"workflow_state": "potential" | |
}, | |
"_type": "candidate" | |
}, | |
{ | |
"_id": "aJxtYIStTwGCYXcpvbnnBw", | |
"_index": "hire-dev", | |
"_score": 1.0, | |
"_source": {}, | |
"_type": "candidate" | |
}, | |
{ | |
"_id": "2", | |
"_index": "hire-dev", | |
"_score": 1.0, | |
"_source": { | |
"created_at": "2012-07-24T18:28:04Z", | |
"dribbble": "bleikamp", | |
"email": "ben@github.com", | |
"github": "bleikamp", | |
"id": 2, | |
"linkedin": null, | |
"name": "Ben Bleikamp", | |
"tag_list": [], | |
"twitter": "bleikamp", | |
"type": "candidate", | |
"workflow_state": "potential" | |
}, | |
"_type": "candidate" | |
}, | |
{ | |
"_id": "7", | |
"_index": "hire-dev", | |
"_score": 1.0, | |
"_source": { | |
"created_at": "2012-08-01T00:23:51Z", | |
"dribbble": "kneath", | |
"email": "kyle@github.com", | |
"github": "kneath", | |
"id": 7, | |
"linkedin": null, | |
"name": "Kyle Neath", | |
"tag_list": [ | |
"designer" | |
], | |
"twitter": "kneath", | |
"type": "candidate", | |
"workflow_state": "potential" | |
}, | |
"_type": "candidate" | |
}, | |
{ | |
"_id": "3", | |
"_index": "hire-dev", | |
"_score": 1.0, | |
"_source": { | |
"created_at": "2012-07-24T19:13:46Z", | |
"dribbble": "", | |
"email": "jake@bellacera.com", | |
"github": "jakebellacera", | |
"id": 3, | |
"linkedin": null, | |
"name": "Jake Bellacera", | |
"tag_list": [ | |
"friend", | |
"html", | |
"css", | |
"js" | |
], | |
"twitter": "jakebellacera", | |
"type": "candidate", | |
"workflow_state": "potential" | |
}, | |
"_type": "candidate" | |
} | |
], | |
"max_score": 1.0, | |
"total": 6 | |
}, | |
"timed_out": false, | |
"took": 1 | |
} |
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
{ | |
"query": { | |
"query_string": { | |
"query": "kyle" | |
}, | |
"bool": { | |
"must_not": [ | |
{ | |
"term": { | |
"github": { | |
"term": "dewski" | |
} | |
} | |
} | |
] | |
} | |
}, | |
"sort": [ | |
{ | |
"created_at": "desc" | |
} | |
], | |
"facets": { | |
"global_tags": { | |
"terms": { | |
"field": "tag_list", | |
"size": 10, | |
"all_terms": false | |
}, | |
"global": true | |
}, | |
"current_tags": { | |
"terms": { | |
"field": "tag_list", | |
"size": 10, | |
"all_terms": false | |
} | |
}, | |
"global_states": { | |
"terms": { | |
"field": "workflow_state", | |
"size": 10, | |
"all_terms": false | |
}, | |
"global": true | |
}, | |
"current_states": { | |
"terms": { | |
"field": "workflow_state", | |
"size": 10, | |
"all_terms": false | |
} | |
} | |
}, | |
"filter": { | |
"term": { | |
"workflow_state": "potential" | |
} | |
} | |
} |
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
500 : {"error":"SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[EyVSCZHZRj-rICyZSbn2EA][hire-dev][0]: SearchParseException[[hire-dev][0]: query[_all:kyle],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"kyle\"},\"bool\":{\"must_not\":[{\"term\":{\"github\":{\"term\":\"dewski\"}}}]}},\"sort\":[{\"created_at\":\"desc\"}],\"facets\":{\"global_tags\":{\"terms\":{\"field\":\"tag_list\",\"size\":10,\"all_terms\":false},\"global\":true},\"current_tags\":{\"terms\":{\"field\":\"tag_list\",\"size\":10,\"all_terms\":false}},\"global_states\":{\"terms\":{\"field\":\"workflow_state\",\"size\":10,\"all_terms\":false},\"global\":true},\"current_states\":{\"terms\":{\"field\":\"workflow_state\",\"size\":10,\"all_terms\":false}}},\"filter\":{\"term\":{\"workflow_state\":\"potential\"}}}]]]; nested: SearchParseException[[hire-dev][0]: query[_all:kyle],from[-1],size[-1]: Parse Failure [No parser for element [must_not]]]; }{[EyVSCZHZRj-rICyZSbn2EA][hire-dev][3]: SearchParseException[[hire-dev][3]: query[_all:kyle],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"kyle\"},\"bool\":{\"must_not\":[{\"term\":{\"github\":{\"term\":\"dewski\"}}}]}},\"sort\":[{\"created_at\":\"desc\"}],\"facets\":{\"global_tags\":{\"terms\":{\"field\":\"tag_list\",\"size\":10,\"all_terms\":false},\"global\":true},\"current_tags\":{\"terms\":{\"field\":\"tag_list\",\"size\":10,\"all_terms\":false}},\"global_states\":{\"terms\":{\"field\":\"workflow_state\",\"size\":10,\"all_terms\":false},\"global\":true},\"current_states\":{\"terms\":{\"field\":\"workflow_state\",\"size\":10,\"all_terms\":false}}},\"filter\":{\"term\":{\"workflow_state\":\"potential\"}}}]]]; nested: SearchParseException[[hire-dev][3]: query[_all:kyle],from[-1],size[-1]: Parse Failure [No parser for element [must_not]]]; }{[EyVSCZHZRj-rICyZSbn2EA][hire-dev][1]: SearchParseException[[hire-dev][1]: query[_all:kyle],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"kyle\"},\"bool\":{\"must_not\":[{\"term\":{\"github\":{\"term\":\"dewski\"}}}]}},\"sort\":[{\"created_at\":\"desc\"}],\"facets\":{\"global_tags\":{\"terms\":{\"field\":\"tag_list\",\"size\":10,\"all_terms\":false},\"global\":true},\"current_tags\":{\"terms\":{\"field\":\"tag_list\",\"size\":10,\"all_terms\":false}},\"global_states\":{\"terms\":{\"field\":\"workflow_state\",\"size\":10,\"all_terms\":false},\"global\":true},\"current_states\":{\"terms\":{\"field\":\"workflow_state\",\"size\":10,\"all_terms\":false}}},\"filter\":{\"term\":{\"workflow_state\":\"potential\"}}}]]]; nested: SearchParseException[[hire-dev][1]: query[_all:kyle],from[-1],size[-1]: Parse Failure [No parser for element [must_not]]]; }]","status":500} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{
"query": {
"bool": {
"must" : {
"query_string": {
"query": "kyle"
}
},
"must_not": [
{
"term": {
"github": {
"term": "dewski"
}
}
}
]
}
},
"sort": [
{
"created_at": "desc"
}
],
"facets": {
"global_tags": {
"terms": {
"field": "tag_list",
"size": 10,
"all_terms": false
},
"global": true
},
"current_tags": {
"terms": {
"field": "tag_list",
"size": 10,
"all_terms": false
}
},
"global_states": {
"terms": {
"field": "workflow_state",
"size": 10,
"all_terms": false
},
"global": true
},
"current_states": {
"terms": {
"field": "workflow_state",
"size": 10,
"all_terms": false
}
}
},
"filter": {
"term": {
"workflow_state": "potential"
}
}
}