Skip to content

Instantly share code, notes, and snippets.

@mattfield11
Last active September 4, 2017 09:30
Show Gist options
  • Save mattfield11/2ad979ed4ca8dc2b9099259131cfddf1 to your computer and use it in GitHub Desktop.
Save mattfield11/2ad979ed4ca8dc2b9099259131cfddf1 to your computer and use it in GitHub Desktop.
GET wikipeople/_search
{
"_source": {
"excludes": [ "text" ]
},
"query": {
"bool": {
"should": [
{ "match": {
"title": {
"query": "american football bearcats",
"boost":2}
}},
{ "match": {
"categories": {
"query": "american football bearcats",
"boost":2}
}},
{ "match": { "text.english": "american football bearcats" }}
]
}
},
"highlight" : {
"fields" : {
"text" : {},
"title": {},
"categories": {}
}
}
}
RESPONSE:
{
"took": 38,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 7815,
"max_score": 57.562233,
"hits": [
{
"_index": "wikipeople",
"_type": "wiki_page",
"_id": "AV4ywoSg0gp1VjRVHWNB",
"_score": 57.562233,
"_source": {
"fullurl": "https://en.wikipedia.org/wiki/Stacy_Adams_%28American_football%29",
"suggest": [
{
"input": "Stacy Adams (American football)",
"weight": 1
}
],
"categories": [
"[[en:Category:1966 births]]",
"[[en:Category:African-American coaches of American football]]",
"[[en:Category:African-American players of American football]]",
"[[en:Category:American football linebackers]]",
"[[en:Category:American football quarterbacks]]",
"[[en:Category:American football running backs]]",
"[[en:Category:Joliet Wolves football players]]",
"[[en:Category:Living people]]",
"[[en:Category:Northwest Missouri State Bearcats football players]]",
"[[en:Category:Players of American football from Indiana]]",
"[[en:Category:Sportspeople from Gary, Indiana]]",
"[[en:Category:Valparaiso Crusaders football coaches]]",
"[[en:Category:Valparaiso University alumni]]"
],
"title": "Stacy Adams (American football)"
},
"highlight": {
"text": [
" = [[Northwest Missouri State <em>Bearcats</em> <em>football</em>|Northwest Missouri State]]\n| coach_years1 = 1991–2004",
"""
.
==College==
Adams played quarterback for [[Tom Horne (<em>American</em> <em>football</em>)|Tom Horne]] at [[Joliet Junior
""",
"""
]]
[[Category:Joliet Wolves <em>football</em> players]]
[[Category:Northwest Missouri State <em>Bearcats</em> <em>football</em>
""",
"""
]]
[[Category:Players of <em>American</em> <em>football</em> from Indiana]]
[[Category:African-<em>American</em> coaches of <em>American</em> <em>football</em>]]
[[Category:African-<em>American</em> players of <em>American</em> <em>football</em>]]
""",
"""
{{Infobox college coach
| name = Stacy Adams
| image =
| alt =
| caption =
| sport = [[<em>American</em>
"""
],
"categories": [
"[[en:Category:African-<em>American</em> coaches of <em>American</em> <em>football</em>]]",
"[[en:Category:African-<em>American</em> players of <em>American</em> <em>football</em>]]",
"[[en:Category:American <em>football</em> linebackers]]",
"[[en:Category:American <em>football</em> quarterbacks]]",
"[[en:Category:American <em>football</em> running backs]]"
],
"title": [
"Stacy Adams (<em>American</em> <em>football</em>)"
]
}
},
{
"_index": "wikipeople",
"_type": "wiki_page",
"_id": "AV4zEMql0gp1VjRVHY9Q",
"_score": 56.27939,
"_source": {
"fullurl": "https://en.wikipedia.org/wiki/Keith_Allen_%28American_football%29",
"suggest": [
{
"input": "Keith Allen (American football)",
"weight": 1
}.......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment