diff --git a/lib/resources.js b/lib/resources.js index d7fb3cbf..c774452a 100644 --- a/lib/resources.js +++ b/lib/resources.js @@ -83,7 +83,8 @@ const SEARCH_SCOPES = { 'parallelPublisher', 'uniformTitle.folded', 'parallelUniformTitle', - 'formerTitle' + 'formerTitle', + 'addedAuthorTitle' ] }, title: { @@ -102,7 +103,8 @@ const SEARCH_SCOPES = { 'parallelTitleAlt.folded', 'parallelCreatorLiteral.folded', 'parallelUniformTitle', - 'formerTitle' + 'formerTitle', + 'addedAuthorTitle' ] }, contributor: { diff --git a/test/fixtures/query-9dd696a2d60a9578983c4ffe6e904442.json b/test/fixtures/query-9dd696a2d60a9578983c4ffe6e904442.json new file mode 100644 index 00000000..a4ebe59b --- /dev/null +++ b/test/fixtures/query-9dd696a2d60a9578983c4ffe6e904442.json @@ -0,0 +1,1233 @@ +{ + "took": 560, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 34342, + "max_score": 0, + "hits": [] + }, + "aggregations": { + "owner": { + "doc_count": 44396, + "_nested": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 984, + "buckets": [ + { + "key": "orgs:1000||Stephen A. Schwarzman Building", + "doc_count": 10172 + }, + { + "key": "orgs:0003||Princeton University Library", + "doc_count": 7320 + }, + { + "key": "orgs:0002||Columbia University Libraries", + "doc_count": 5941 + }, + { + "key": "orgs:0004||Harvard Library", + "doc_count": 4639 + }, + { + "key": "orgs:1101||General Research Division", + "doc_count": 3537 + }, + { + "key": "orgs:1105||Irma and Paul Milstein Division of United States History, Local History and Genealogy", + "doc_count": 1027 + }, + { + "key": "orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division", + "doc_count": 796 + }, + { + "key": "orgs:1002||New York Public Library for the Performing Arts, Dorothy and Lewis B. Cullman Center", + "doc_count": 617 + }, + { + "key": "orgs:1108||Rare Book Division", + "doc_count": 383 + }, + { + "key": "orgs:1110||The Miriam and Ira D. Wallach Division of Art, Prints and Photographs: Art & Architecture Collection", + "doc_count": 324 + } + ] + } + }, + "contributorLiteral": { + "doc_count_error_upper_bound": 19, + "sum_other_doc_count": 40879, + "buckets": [ + { + "key": "Gale (Firm)", + "doc_count": 439 + }, + { + "key": "New York Genealogical and Biographical Society Collection.", + "doc_count": 247 + }, + { + "key": "Sinclair Hamilton Collection of American Illustrated Books. NjP http://id.loc.gov/authorities/names/no2003086490", + "doc_count": 225 + }, + { + "key": "Sinclair Hamilton Collection of American Illustrated Books NjP", + "doc_count": 220 + }, + { + "key": "Hamilton, Alexander, 1757-1804.", + "doc_count": 172 + }, + { + "key": "Alexander Hamilton Institute (U.S.)", + "doc_count": 135 + }, + { + "key": "Ford Collection.", + "doc_count": 129 + }, + { + "key": "Jay, John, 1745-1829.", + "doc_count": 118 + }, + { + "key": "HistoryMakers (Video oral history collection), production company.", + "doc_count": 116 + }, + { + "key": "Madison, James, 1751-1836.", + "doc_count": 105 + }, + { + "key": "Hamilton, Racine Tucker", + "doc_count": 101 + }, + { + "key": "Harty, Hamilton, 1879-1941.", + "doc_count": 90 + }, + { + "key": "Metropolitan Opera (New York, N.Y.)", + "doc_count": 73 + }, + { + "key": "Booz, Allen & Hamilton.", + "doc_count": 62 + }, + { + "key": "Art Gallery of Hamilton (Ont.)", + "doc_count": 55 + }, + { + "key": "Hamilton, Chico, 1921-2013", + "doc_count": 53 + }, + { + "key": "Philip Hamilton McMillan Memorial Publication Fund.", + "doc_count": 53 + }, + { + "key": "Handel, George Frideric, 1685-1759.", + "doc_count": 52 + }, + { + "key": "Metropolitan Opera Radio Broadcast collection.", + "doc_count": 51 + }, + { + "key": "Milton, John, 1608-1674.", + "doc_count": 50 + }, + { + "key": "Hamilton, Newburgh, 1691-1761.", + "doc_count": 49 + }, + { + "key": "Hickey, Matthew", + "doc_count": 49 + }, + { + "key": "Lane, Edgar Carey", + "doc_count": 49 + }, + { + "key": "New York Public Library for the Performing Arts. Billy Rose Theatre Division. Theatre on Film and Tape Archive.", + "doc_count": 46 + }, + { + "key": "Hamilton, Ian, 1938-2001.", + "doc_count": 44 + }, + { + "key": "American Antiquarian Society.", + "doc_count": 43 + }, + { + "key": "Baker, John H. (John Hamilton)", + "doc_count": 43 + }, + { + "key": "Madison, James, 1751-1836", + "doc_count": 40 + }, + { + "key": "Wild Hawthorn Press. pbl", + "doc_count": 40 + }, + { + "key": "Kirk-Greene, A. H. M. (Anthony Hamilton Millard)", + "doc_count": 39 + }, + { + "key": "Geological Survey (U.S.)", + "doc_count": 38 + }, + { + "key": "Hamilton, Iain, 1922-2000.", + "doc_count": 37 + }, + { + "key": "Mabie, Hamilton Wright, 1846-1916.", + "doc_count": 37 + }, + { + "key": "Schomburg Children's Collection.", + "doc_count": 36 + }, + { + "key": "Barr, Alfred Hamilton, 1902-", + "doc_count": 35 + }, + { + "key": "Drexel Collection.", + "doc_count": 35 + }, + { + "key": "Hamilton, Alexander, 1757-1804", + "doc_count": 35 + }, + { + "key": "Long, John Hamilton.", + "doc_count": 35 + }, + { + "key": "Allen, Peter, 1920-2016.", + "doc_count": 34 + }, + { + "key": "Mozart, Wolfgang Amadeus, 1756-1791.", + "doc_count": 34 + }, + { + "key": "Sinclair Hamilton Collection of American Illustrated Books. NjP", + "doc_count": 33 + }, + { + "key": "Children's Room Collection.", + "doc_count": 31 + }, + { + "key": "DHCA.", + "doc_count": 30 + }, + { + "key": "Darley, Felix Octavius Carr, 1822-1888,", + "doc_count": 30 + }, + { + "key": "Bryson, William Hamilton, 1941-", + "doc_count": 27 + }, + { + "key": "Hamilton College (Clinton, N.Y.)", + "doc_count": 27 + }, + { + "key": "Hamilton, Susan (Soprano)", + "doc_count": 27 + }, + { + "key": "Smith, A. H. (Arthur Hamilton), 1860-1941.", + "doc_count": 27 + }, + { + "key": "Hamilton, Charles V.", + "doc_count": 25 + }, + { + "key": "Hamilton, F. E. Ian.", + "doc_count": 25 + } + ] + }, + "materialType": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "resourcetypes:txt||Text", + "doc_count": 31925 + }, + { + "key": "resourcetypes:aud||Audio", + "doc_count": 1038 + }, + { + "key": "resourcetypes:mov||Moving image", + "doc_count": 509 + }, + { + "key": "resourcetypes:car||Cartographic", + "doc_count": 256 + }, + { + "key": "resourcetypes:not||Notated music", + "doc_count": 219 + }, + { + "key": "resourcetypes:img||Still image", + "doc_count": 218 + }, + { + "key": "resourcetypes:mix||Mixed material", + "doc_count": 134 + }, + { + "key": "resourcetypes:mul||Multimedia", + "doc_count": 4 + }, + { + "key": "resourcetypes:art||Artifact", + "doc_count": 1 + } + ] + }, + "issuance": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "urn:biblevel:m||monograph/item", + "doc_count": 33267 + }, + { + "key": "urn:biblevel:s||serial", + "doc_count": 491 + }, + { + "key": "urn:biblevel:c||collection", + "doc_count": 297 + }, + { + "key": "urn:biblevel:a||monograph component part", + "doc_count": 116 + }, + { + "key": "urn:biblevel:b||serial component part", + "doc_count": 73 + }, + { + "key": "urn:biblevel:d||subunit", + "doc_count": 58 + }, + { + "key": "urn:biblevel:2||", + "doc_count": 12 + }, + { + "key": "urn:biblevel:p||", + "doc_count": 2 + }, + { + "key": "urn:biblevel:i||integrating resource", + "doc_count": 1 + } + ] + }, + "publisher": { + "doc_count_error_upper_bound": 27, + "sum_other_doc_count": 24448, + "buckets": [ + { + "key": "H. Hamilton", + "doc_count": 1286 + }, + { + "key": "Hamish Hamilton", + "doc_count": 815 + }, + { + "key": "Hamilton", + "doc_count": 783 + }, + { + "key": "H. Hamilton,", + "doc_count": 338 + }, + { + "key": "Hamilton Books", + "doc_count": 319 + }, + { + "key": "Hamilton,", + "doc_count": 260 + }, + { + "key": "Hamish Hamilton,", + "doc_count": 255 + }, + { + "key": "s.n.", + "doc_count": 221 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent", + "doc_count": 190 + }, + { + "key": "Alexander Hamilton Institute", + "doc_count": 172 + }, + { + "key": "Oxford University Press", + "doc_count": 160 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent & Co., Ltd.", + "doc_count": 125 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent & Co.", + "doc_count": 121 + }, + { + "key": "Hamilton Books,", + "doc_count": 119 + }, + { + "key": "Macmillan", + "doc_count": 116 + }, + { + "key": "The HistoryMakers", + "doc_count": 116 + }, + { + "key": "Hamilton, Adams", + "doc_count": 111 + }, + { + "key": "[publisher not identified]", + "doc_count": 111 + }, + { + "key": "Press of C. Hamilton", + "doc_count": 102 + }, + { + "key": "[s.n.]", + "doc_count": 79 + }, + { + "key": "Wiley", + "doc_count": 77 + }, + { + "key": "Doubleday", + "doc_count": 76 + }, + { + "key": "Cambridge University Press", + "doc_count": 63 + }, + { + "key": "Wild Hawthorn Press", + "doc_count": 60 + }, + { + "key": "McGraw-Hill", + "doc_count": 58 + }, + { + "key": "J. Hamilton", + "doc_count": 56 + }, + { + "key": "Ticknor and Fields", + "doc_count": 56 + }, + { + "key": "C. Hamilton", + "doc_count": 55 + }, + { + "key": "Harper & Brothers", + "doc_count": 55 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent & co., ltd.", + "doc_count": 54 + }, + { + "key": "J. Murray", + "doc_count": 52 + }, + { + "key": "Random House", + "doc_count": 51 + }, + { + "key": "Dodd, Mead", + "doc_count": 49 + }, + { + "key": "Putnam", + "doc_count": 49 + }, + { + "key": "s.n.]", + "doc_count": 49 + }, + { + "key": "Harvard University Press", + "doc_count": 48 + }, + { + "key": "Princeton University Press", + "doc_count": 48 + }, + { + "key": "Yale University Press", + "doc_count": 48 + }, + { + "key": "Hamilton, Adams & Co.", + "doc_count": 46 + }, + { + "key": "Routledge", + "doc_count": 46 + }, + { + "key": "Alexander Hamilton institute", + "doc_count": 45 + }, + { + "key": "Charles Hamilton", + "doc_count": 45 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent,", + "doc_count": 45 + }, + { + "key": "University of Toronto Press", + "doc_count": 42 + }, + { + "key": "G.P. Putnam's Sons", + "doc_count": 39 + }, + { + "key": "Concord Jazz", + "doc_count": 36 + }, + { + "key": "Printed at the Journal office", + "doc_count": 35 + }, + { + "key": "Hamilton & Co.", + "doc_count": 34 + }, + { + "key": "University of Chicago Press", + "doc_count": 34 + }, + { + "key": "Art Gallery of Hamilton", + "doc_count": 33 + } + ] + }, + "language": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 12, + "buckets": [ + { + "key": "lang:eng||English", + "doc_count": 31859 + }, + { + "key": "lang:zxx||No linguistic content", + "doc_count": 326 + }, + { + "key": "lang:fre||French", + "doc_count": 321 + }, + { + "key": "lang:ger||German", + "doc_count": 280 + }, + { + "key": "lang:por||Portuguese", + "doc_count": 177 + }, + { + "key": "lang:ita||Italian", + "doc_count": 162 + }, + { + "key": "lang:spa||Spanish", + "doc_count": 158 + }, + { + "key": "lang:lat||Latin", + "doc_count": 128 + }, + { + "key": "lang:swe||Swedish", + "doc_count": 71 + }, + { + "key": "lang:|||||", + "doc_count": 62 + }, + { + "key": "lang:heb||Hebrew", + "doc_count": 35 + }, + { + "key": "lang:rus||Russian", + "doc_count": 28 + }, + { + "key": "lang:und||Undetermined", + "doc_count": 22 + }, + { + "key": "lang:mul||Multiple languages", + "doc_count": 20 + }, + { + "key": "lang:dut||Dutch", + "doc_count": 16 + }, + { + "key": "lang:ara||Arabic", + "doc_count": 14 + }, + { + "key": "lang:dan||Danish", + "doc_count": 13 + }, + { + "key": "lang:chi||Chinese", + "doc_count": 12 + }, + { + "key": "lang:grc||Greek, Ancient (to 1453)", + "doc_count": 11 + }, + { + "key": "lang:jpn||Japanese", + "doc_count": 9 + }, + { + "key": "lang:nor||Norwegian", + "doc_count": 9 + }, + { + "key": "lang:pol||Polish", + "doc_count": 8 + }, + { + "key": "lang:cze||Czech", + "doc_count": 7 + }, + { + "key": "lang:gre||Greek, Modern (1453- )", + "doc_count": 7 + }, + { + "key": "lang:gle||Irish", + "doc_count": 6 + }, + { + "key": "lang:kor||Korean", + "doc_count": 6 + }, + { + "key": "lang:per||Persian", + "doc_count": 6 + }, + { + "key": "lang:tur||Turkish", + "doc_count": 5 + }, + { + "key": "lang:cat||Catalan", + "doc_count": 4 + }, + { + "key": "lang:lav||Latvian", + "doc_count": 4 + }, + { + "key": "lang:fro||French, Old (ca. 842-1300)", + "doc_count": 3 + }, + { + "key": "lang:nai||North American Indian (Other)", + "doc_count": 3 + }, + { + "key": "lang:ukr||Ukrainian", + "doc_count": 3 + }, + { + "key": "lang:afr||Afrikaans", + "doc_count": 2 + }, + { + "key": "lang:asm||Assamese", + "doc_count": 2 + }, + { + "key": "lang:bnt||Bantu (Other)", + "doc_count": 2 + }, + { + "key": "lang:bul||Bulgarian", + "doc_count": 2 + }, + { + "key": "lang:frm||French, Middle (ca. 1300-1600)", + "doc_count": 2 + }, + { + "key": "lang:gla||Scottish Gaelic", + "doc_count": 2 + }, + { + "key": "lang:hau||Hausa", + "doc_count": 2 + }, + { + "key": "lang:wel||Welsh", + "doc_count": 2 + }, + { + "key": "lang:N/A||", + "doc_count": 1 + }, + { + "key": "lang:afa||Afroasiatic (Other)", + "doc_count": 1 + }, + { + "key": "lang:ang||English, Old (ca. 450-1100)", + "doc_count": 1 + }, + { + "key": "lang:arm||Armenian", + "doc_count": 1 + }, + { + "key": "lang:ben||Bengali", + "doc_count": 1 + }, + { + "key": "lang:enm||English, Middle (1100-1500)", + "doc_count": 1 + }, + { + "key": "lang:epo||Esperanto", + "doc_count": 1 + }, + { + "key": "lang:gem||Germanic (Other)", + "doc_count": 1 + }, + { + "key": "lang:hin||Hindi", + "doc_count": 1 + } + ] + }, + "mediaType": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "mediatypes:n||unmediated", + "doc_count": 32700 + }, + { + "key": "mediatypes:undefined||unmediated", + "doc_count": 1318 + }, + { + "key": "mediatypes:s||audio", + "doc_count": 224 + }, + { + "key": "mediatypes:v||video", + "doc_count": 32 + }, + { + "key": "mediatypes:h||microform", + "doc_count": 29 + }, + { + "key": "mediatypes:undefined||microform", + "doc_count": 16 + }, + { + "key": "mediatypes:c||computer", + "doc_count": 13 + }, + { + "key": "mediatypes:undefined||audio", + "doc_count": 10 + }, + { + "key": "mediatypes:g||projected", + "doc_count": 1 + }, + { + "key": "mediatypes:n||computer", + "doc_count": 1 + }, + { + "key": "mediatypes:undefined||text", + "doc_count": 1 + }, + { + "key": "mediatypes:z||unspecified", + "doc_count": 1 + } + ] + }, + "subjectLiteral": { + "doc_count_error_upper_bound": 35, + "sum_other_doc_count": 86020, + "buckets": [ + { + "key": "Hamilton, Alexander, 1757-1804.", + "doc_count": 480 + }, + { + "key": "United States.", + "doc_count": 380 + }, + { + "key": "1900-1999", + "doc_count": 214 + }, + { + "key": "United States", + "doc_count": 180 + }, + { + "key": "African Americans.", + "doc_count": 156 + }, + { + "key": "Hamilton, Emma, Lady, 1765-1815.", + "doc_count": 119 + }, + { + "key": "African Americans -- Interviews.", + "doc_count": 117 + }, + { + "key": "Great Britain.", + "doc_count": 113 + }, + { + "key": "Operas.", + "doc_count": 99 + }, + { + "key": "Artists' books.", + "doc_count": 98 + }, + { + "key": "Hamilton family.", + "doc_count": 94 + }, + { + "key": "English fiction.", + "doc_count": 90 + }, + { + "key": "Great Britain", + "doc_count": 89 + }, + { + "key": "1800-1899", + "doc_count": 88 + }, + { + "key": "Jefferson, Thomas, 1743-1826.", + "doc_count": 82 + }, + { + "key": "Great Britain -- Court and courtiers.", + "doc_count": 77 + }, + { + "key": "Jazz.", + "doc_count": 77 + }, + { + "key": "Tariff -- United States.", + "doc_count": 75 + }, + { + "key": "United States -- Politics and government -- 1783-1809.", + "doc_count": 72 + }, + { + "key": "English poetry.", + "doc_count": 71 + }, + { + "key": "Hamilton, Alexander, 1757-1804", + "doc_count": 71 + }, + { + "key": "Authors, English -- 20th century -- Biography.", + "doc_count": 68 + }, + { + "key": "Constitutional law -- United States.", + "doc_count": 67 + }, + { + "key": "Politics and government.", + "doc_count": 66 + }, + { + "key": "Travel.", + "doc_count": 65 + }, + { + "key": "Manners and customs.", + "doc_count": 63 + }, + { + "key": "Piano music.", + "doc_count": 63 + }, + { + "key": "Statesmen -- United States -- Biography.", + "doc_count": 63 + }, + { + "key": "Theater -- New York (State) -- New York.", + "doc_count": 63 + }, + { + "key": "Gramont, Philibert, comte de, 1621-1707.", + "doc_count": 62 + }, + { + "key": "Politics and government", + "doc_count": 61 + }, + { + "key": "United States -- Politics and government -- 1775-1783.", + "doc_count": 61 + }, + { + "key": "Nelson, Horatio Nelson, Viscount, 1758-1805.", + "doc_count": 56 + }, + { + "key": "2000-2099", + "doc_count": 55 + }, + { + "key": "Economics.", + "doc_count": 55 + }, + { + "key": "English drama.", + "doc_count": 55 + }, + { + "key": "United States -- Description and travel.", + "doc_count": 55 + }, + { + "key": "English fiction", + "doc_count": 52 + }, + { + "key": "Concrete poetry.", + "doc_count": 51 + }, + { + "key": "Bible. -- Criticism, interpretation, etc.", + "doc_count": 49 + }, + { + "key": "Fiction in English, 1945- - Texts", + "doc_count": 48 + }, + { + "key": "Adams, John, 1735-1826.", + "doc_count": 47 + }, + { + "key": "Hamilton County (Ohio) -- Genealogy.", + "doc_count": 46 + }, + { + "key": "Hamilton, Emma, Lady, 1765-1815", + "doc_count": 46 + }, + { + "key": "Voyages and travels.", + "doc_count": 45 + }, + { + "key": "Washington, George, 1732-1799.", + "doc_count": 45 + }, + { + "key": "Jazz vocals.", + "doc_count": 44 + }, + { + "key": "Burr, Aaron, 1756-1836.", + "doc_count": 41 + }, + { + "key": "Business.", + "doc_count": 41 + }, + { + "key": "Education.", + "doc_count": 41 + } + ] + }, + "creatorLiteral": { + "doc_count_error_upper_bound": 24, + "sum_other_doc_count": 26786, + "buckets": [ + { + "key": "Finlay, Ian Hamilton.", + "doc_count": 165 + }, + { + "key": "Mabie, Hamilton Wright, 1846-1916.", + "doc_count": 146 + }, + { + "key": "Hamilton, Alexander, 1757-1804.", + "doc_count": 116 + }, + { + "key": "Hamilton, Virginia, 1936-2002.", + "doc_count": 86 + }, + { + "key": "Maxwell, W. H. (William Hamilton), 1792-1850.", + "doc_count": 84 + }, + { + "key": "Carey, Mathew, 1760-1839.", + "doc_count": 80 + }, + { + "key": "Hamilton, Gail, 1833-1896.", + "doc_count": 80 + }, + { + "key": "Child, Hamilton, 1836-", + "doc_count": 76 + }, + { + "key": "Handel, George Frideric, 1685-1759.", + "doc_count": 72 + }, + { + "key": "Hamilton, Iain, 1922-2000.", + "doc_count": 69 + }, + { + "key": "Hamilton, Mary Agnes, 1884-1966.", + "doc_count": 67 + }, + { + "key": "Lockhart, Robert Hamilton Bruce, 1887-1970.", + "doc_count": 62 + }, + { + "key": "Hamilton, James, 1814-1867.", + "doc_count": 57 + }, + { + "key": "Stephens, Alexander H. (Alexander Hamilton), 1812-1883.", + "doc_count": 51 + }, + { + "key": "Eaton, Arthur Wentworth Hamilton, 1849-1937.", + "doc_count": 50 + }, + { + "key": "Hamilton, Anthony, Count, approximately 1646-1720.", + "doc_count": 50 + }, + { + "key": "Fyfe, Hamilton, 1869-1951.", + "doc_count": 49 + }, + { + "key": "Hurd, D. Hamilton (Duane Hamilton)", + "doc_count": 47 + }, + { + "key": "Hamilton, Clayton Meeker, 1881-1946.", + "doc_count": 46 + }, + { + "key": "Basso, Hamilton, 1904-1964.", + "doc_count": 45 + }, + { + "key": "Hamilton, Patrick, 1904 March 17-1962.", + "doc_count": 45 + }, + { + "key": "Hamilton-Paterson, James.", + "doc_count": 45 + }, + { + "key": "Sears, Edmund H. (Edmund Hamilton), 1810-1876.", + "doc_count": 45 + }, + { + "key": "Booz, Allen & Hamilton.", + "doc_count": 44 + }, + { + "key": "Hamilton, Cicely, 1872-1952.", + "doc_count": 43 + }, + { + "key": "Kirk-Greene, A. H. M. (Anthony Hamilton Millard)", + "doc_count": 43 + }, + { + "key": "Moore, John Hamilton, -1807.", + "doc_count": 43 + }, + { + "key": "West, Jerry, 1910-1975.", + "doc_count": 43 + }, + { + "key": "Hamilton, William, Sir, 1788-1856.", + "doc_count": 42 + }, + { + "key": "Cushing, Frank Hamilton, 1857-1900.", + "doc_count": 39 + }, + { + "key": "Hamilton, Ian, 1938-2001.", + "doc_count": 39 + }, + { + "key": "Thompson, A. Hamilton (Alexander Hamilton), 1873-1952.", + "doc_count": 39 + }, + { + "key": "Hamilton, Edith, 1867-1963.", + "doc_count": 38 + }, + { + "key": "Hartley, L. P. (Leslie Poles), 1895-1972.", + "doc_count": 37 + }, + { + "key": "Hamilton College (Clinton, N.Y.)", + "doc_count": 36 + }, + { + "key": "Brogan, D. W. (Denis William), 1900-1974.", + "doc_count": 35 + }, + { + "key": "Gibbs, A. Hamilton (Arthur Hamilton), 1888-1964.", + "doc_count": 34 + }, + { + "key": "Gibson, W. Hamilton (William Hamilton), 1850-1896.", + "doc_count": 34 + }, + { + "key": "Moorehead, Alan, 1910-1983.", + "doc_count": 34 + }, + { + "key": "Gibb, H. A. R. (Hamilton Alexander Rosskeen), 1895-1971.", + "doc_count": 32 + }, + { + "key": "Hamilton, Cosmo, 1872?-1942.", + "doc_count": 32 + }, + { + "key": "Hamilton, Ian, 1853-1947.", + "doc_count": 32 + }, + { + "key": "Baldwin-Lima-Hamilton Corporation.", + "doc_count": 31 + }, + { + "key": "Hill, Hamilton Andrews, 1827-1895.", + "doc_count": 31 + }, + { + "key": "Ellis, Cuthbert Hamilton, 1909-", + "doc_count": 29 + }, + { + "key": "Hamilton, Thomas, 1789-1842.", + "doc_count": 28 + }, + { + "key": "Myers, P. Hamilton (Peter Hamilton), 1812-1878.", + "doc_count": 27 + }, + { + "key": "Simenon, Georges, 1903-1989.", + "doc_count": 26 + }, + { + "key": "Hamilton, Nigel.", + "doc_count": 25 + }, + { + "key": "Baker, John H. (John Hamilton)", + "doc_count": 24 + } + ] + } + } +} \ No newline at end of file diff --git a/test/fixtures/query-edee3d790e0cdd4de27a4e9090f329f2.json b/test/fixtures/query-edee3d790e0cdd4de27a4e9090f329f2.json new file mode 100644 index 00000000..07b99d88 --- /dev/null +++ b/test/fixtures/query-edee3d790e0cdd4de27a4e9090f329f2.json @@ -0,0 +1,14 @@ +{ + "took": 105, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 0, + "max_score": null, + "hits": [] + } +} \ No newline at end of file