\n";
}
std::string getXml() const
{
return std::string()
+ " " + title + "\n"
+ " " + replace(link, "'", "'") + "\n"
+ " " + snippet + "\n"
+ " \n"
+ " " + bookTitle + "\n"
+ " \n"
+ " " + wordCount + "";
}
};
#define SEARCH_RESULT(LINK, TITLE, SNIPPET, BOOK_TITLE, WORDCOUNT) \
SearchResult{LINK, TITLE, SNIPPET, BOOK_TITLE, WORDCOUNT}
const std::vector LARGE_SEARCH_RESULTS = {
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Genius_%2B_Soul_%3D_Jazz",
/*title*/ "Genius + Soul = Jazz",
/*snippet*/ R"SNIPPET(...Grammy Hall of Fame in 2011. It was re-issued in the UK, first in 1989 on the Castle Communications "Essential Records" label, and by Rhino Records in 1997 on a single CD together with Charles' 1970 My Kind of Jazz. In 2010, Concord Records released a deluxe edition comprising digitally remastered versions of Genius + Soul = Jazz, My Kind of Jazz, Jazz Number II, and My Kind of Jazz Part 3. Professional ratings Review scores Source Rating Allmusic link Warr.org link Encyclopedia of Popular Music...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "242"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Jazz_Number_II",
/*title*/ "Jazz Number II",
/*snippet*/ R"SNIPPET(Jazz Number II Jazz Number II is a 1973 album by Ray Charles. It is a collection of jazz/soul instrumentals featuring Charles on piano backed by his Big Band. Professional ratings Review scores Source Rating Allmusic link Jazz Number II Studio album by Ray Charles Released January 1973 Recorded 1971-72 Studio Charles’ Tangerine/RPM Studios, Los Angeles, CA Genre Soul, jazz Length 39:02 Label Tangerine Producer Ray Charles Ray Charles chronology Through the Eyes of Love (1972) Jazz Number II......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "87"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/My_Kind_of_Jazz_Part_3",
/*title*/ "My Kind of Jazz Part 3",
/*snippet*/ R"SNIPPET(My Kind of Jazz Part 3 My Kind of Jazz Part 3 is a 1975 album by Ray Charles released by Crossover Records. Concord Records re-issued the contents in digital form in 2009. Professional ratings Review scores Source Rating Allmusic link My Kind of Jazz Part 3 Studio album by Ray Charles Released October 1975 Recorded 1975 in Los Angeles, CA Genre Soul, jazz Length 38:13 Label Crossover Producer Ray Charles Ray Charles chronology Renaissance (1975) My Kind of Jazz Part 3 (1975) Live In Japan (1975)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "88"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/My_Kind_of_Jazz",
/*title*/ "My Kind of Jazz",
/*snippet*/ R"SNIPPET(My Kind of Jazz My Kind of Jazz Studio album by Ray Charles Released April 1970 Recorded January 1-10, 1970 in Los Angeles, CA Genre jazz Length 30:20 Label Tangerine Producer Quincy Jones Ray Charles chronology Doing His Thing (1969) My Kind of Jazz (1970) Love Country Style (1970) Professional ratings Review scores Source Rating Allmusic link My Kind of Jazz is a 1970 album by Ray Charles....)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "69"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Hank_Crawford",
/*title*/ "Hank Crawford",
/*snippet*/ R"SNIPPET(...bop, jazz-funk, soul jazz alto saxophonist, arranger and songwriter. Crawford was musical director for Ray Charles before embarking on a solo career releasing many well-regarded albums on Atlantic, CTI and Milestone. Hank Crawford Background information Birth name Bennie Ross Crawford, Jr Born (1934-12-21)December 21, 1934 Memphis, Tennessee, U.S. Died January 29, 2009(2009-01-29) (aged 74) Memphis, Tennessee, U.S. Genres R&B, Hard bop, Jazz-funk, Soul jazz Occupation(s) Saxophonist, Songwriter......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "102"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Catchin'_Some_Rays%3A_The_Music_of_Ray_Charles",
/*title*/ "Catchin' Some Rays: The Music of Ray Charles",
/*snippet*/ R"SNIPPET(...jazz singer Roseanna Vitro, released in August 1997 on the Telarc Jazz label. Catchin' Some Rays: The Music of Ray Charles Studio album by Roseanna Vitro Released August 1997 Recorded March 26, 1997 at Sound on Sound, NYC April 4,1997 at Quad Recording Studios, NYC Genre Vocal jazz Length 61:00 Label Telarc Jazz CD-83419 Producer Paul Wickliffe Roseanna Vitro chronology Passion Dance (1996) Catchin' Some Rays: The Music of Ray Charles (1997) The Time of My Life: Roseanna Vitro Sings the Songs of......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "118"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/That's_What_I_Say%3A_John_Scofield_Plays_the_Music_of_Ray_Charles",
/*title*/ "That's What I Say: John Scofield Plays the Music of Ray Charles",
/*snippet*/ R"SNIPPET(That's What I Say: John Scofield Plays the Music of Ray Charles Studio album by John Scofield Released June 7, 2005 (2005-06-07) Recorded December 2004 Studio Avatar Studios, New York City Genre Jazz Length 65:21 Label Verve Producer Steve Jordan John Scofield chronology EnRoute: John Scofield Trio LIVE (2004) That's What I Say: John Scofield Plays the Music of Ray Charles (2005) Out Louder (2006) Professional ratings Review scores Source Rating Allmusic All About Jazz All About Jazz...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "109"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Tribute_to_Uncle_Ray",
/*title*/ "Tribute to Uncle Ray",
/*snippet*/ R"SNIPPET(...Stevie Wonder" with the successful and popular Ray Charles who was also a blind African American musician. Like his debut, this album failed to generate hit singles as Motown struggled to find a sound to fit Wonder, who was just 12 when this album was released. Tribute to Uncle Ray Studio album by Little Stevie Wonder Released October 1962 Recorded 1962 Studio Studio A, Hitsville USA, Detroit Genre Soul, jazz Label Tamla Producer Henry Cosby, Clarence Paul Stevie Wonder chronology The Jazz Soul of Little Stevie (1962) Tribute to Uncle Ray (1962) Recorded Live: The 12 Year Old Genius (1963) Professional ratings Review scores Source Rating Allmusic...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "165"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/The_Best_of_Ray_Charles",
/*title*/ "The Best of Ray Charles",
/*snippet*/ R"SNIPPET(The Best of Ray Charles The Best of Ray Charles is a compilation album released in 1970 on the Atlantic Jazz label, featuring previously released instrumental (non-vocal) tracks recorded by Ray Charles between November 1956 and November 1958. The Best of Ray Charles Greatest hits album by Ray Charles Released 1970 Genre R&B, Jazz Length 34:06 Label Atlantic The instrumental, "Rockhouse" would later be covered, as "Ray's Rockhouse" (1985), by The Manhattan Transfer with lyrics by Jon Hendricks....)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "79"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/The_Genius_Hits_the_Road",
/*title*/ "The Genius Hits the Road",
/*snippet*/ R"SNIPPET(...a hit single, "Georgia on My Mind". The Genius Hits the Road Studio album by Ray Charles Released September 1960 Recorded March 25 and 29, 1960 in New York City Genre R&B, blues, jazz Length 33:37 Label ABC-Paramount 335 Producer Sid Feller Ray Charles chronology Genius + Soul = Jazz (1961) The Genius Hits the Road (1960) Dedicated to You (1961) Singles from The Genius Hits the Road "Georgia on My Mind" Released: September 1960 Professional ratings Review scores Source Rating Allmusic Warr.org...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "127"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Ray_Charles_at_Newport",
/*title*/ "Ray Charles at Newport",
/*snippet*/ R"SNIPPET(...Ray Charles at Newport is a 1958 live album of Ray Charles' July 5, 1958 performance at the Newport Jazz Festival. The detailed liner notes on the album were written by Kenneth Lee Karpe. All tracks from this Newport album, along with all tracks from his 1959 Herndon Stadium performance in Atlanta, were also released on the Atlantic compilation LP, Ray Charles Live. A later CD reissue of that compilation album included a previously unissued song from the 1958 Newport concert, "Swanee River Rock". Professional ratings Review scores Source Rating Allmusic link Discogs link Ray Charles at Newport Live album by Ray Charles Released November 1958 Recorded July 5, 1958 Venue Newport Jazz Festival, Newport, Rhode Island Genre R&B Length 40:28 Label Atlantic Producer Tom Dowd (engineer) Ray Charles chronology The Great Ray Charles (1957) Ray Charles at Newport (1958) Yes Indeed! (1958) Re-issue cover 1987 re-issue/compilation...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "152"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Here_We_Go_Again%3A_Celebrating_the_Genius_of_Ray_Charles",
/*title*/ "Here We Go Again: Celebrating the Genius of Ray Charles",
/*snippet*/ R"SNIPPET(...and jazz trumpeter Wynton Marsalis. It was recorded during concerts at the Rose Theater in New York City, on February 9 and 10, 2009. The album received mixed reviews, in which the instrumentation of Marsalis' orchestra was praised by the critics. Here We Go Again: Celebrating the Genius of Ray Charles Live album by Willie Nelson and Wynton Marsalis Released March 29, 2011 (2011-03-29) Recorded February 9 –10 2009 Venue Rose Theater, New York Genre Jazz, country Length 61:49 Label Blue Note......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "167"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Confession_Blues",
/*title*/ "Confession Blues",
/*snippet*/ R"SNIPPET(...jazz Length 2:31 Label Down Beat Records Songwriter(s) R. C. Robinson (Ray Charles) Charles moved to Seattle in 1948, where he formed The McSon Trio with guitarist G. D. "Gossie" McKee and bass player Milton S. Garret. In late 1948, Jack Lauderdale of Down Beat Records heard Charles play at the Seattle jazz club, The Rocking Chair. The next day, Lauderdale took Charles and his trio to a Seattle recording studio where they recorded "Confession Blues" and "I Love You, I Love You". In February......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "284"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Genius_Loves_Company",
/*title*/ "Genius Loves Company",
/*snippet*/ R"SNIPPET(...jazz and pop standards performed by Charles and several guest musicians, such as Natalie Cole, Elton John, James Taylor, Norah Jones, B.B. King, Gladys Knight, Diana Krall, Van Morrison, Willie Nelson and Bonnie Raitt. Genius Loves Company was the last album recorded and completed by Charles before his death in June 2004. Genius Loves Company Studio album by Ray Charles Released August 31, 2004 Recorded June 2003–March 2004 Genre Rhythm and blues, soul, country, blues, jazz, pop Length 54:03......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "325"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Love_Country_Style",
/*title*/ "Love Country Style",
/*snippet*/ R"SNIPPET(Love Country Style Love Country Style is a studio album by Ray Charles released in June 1970 on Charles' Tangerine Records label. Love Country Style Studio album by Ray Charles Released June 1970 Genre R&B Length 35:25 Label ABC/Tangerine Producer Joe Adams Ray Charles chronology My Kind of Jazz (1970) Love Country Style (1970) Volcanic Action of My Soul (1971) Professional ratings Review scores Source Rating Allmusic Christgau's Record Guide B...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "72"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Doing_His_Thing",
/*title*/ "Doing His Thing",
/*snippet*/ R"SNIPPET(Doing His Thing Doing His Thing is a 1969 studio album by Ray Charles, released by Tangerine Records. The cover artwork was by Lafayette Chew. Doing His Thing Studio album by Ray Charles Released May 1969 Recorded RPM Studios, Los Angeles, California Genre R&B, soul Length 32:33 Label ABC/Tangerine Producer Joe Adams Ray Charles chronology I'm All Yours Baby (1969) Doing His Thing (1969) My Kind of Jazz (1970)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "70"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/The_Inspiration_I_Feel",
/*title*/ "The Inspiration I Feel",
/*snippet*/ R"SNIPPET(The Inspiration I Feel The Inspiration I Feel is an album by flautist Herbie Mann featuring tunes associated with Ray Charles recorded in 1968 and released on the Atlantic label. The Inspiration I Feel Studio album by Herbie Mann Released 1968 Recorded May 6 & 7, 1968 New York City Genre Jazz Length 34:28 Label Atlantic SD 1513 Producer Nesuhi Ertegun, Joel Dorn Herbie Mann chronology Windows Opened (1968) The Inspiration I Feel (1968) Memphis Underground (1968)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "78"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Milt_Turner",
/*title*/ "Milt Turner",
/*snippet*/ R"SNIPPET(...Turner After graduating from Pearl High School, he attended Tennessee State University, where he coincided with Hank Crawford, who he later recommended to join him in Ray Charles' band when he took over from William Peeples in the late 1950s. Milton Turner (1930-1993) was a jazz drummer. In 1962, he was a member of Phineas Newborn's trio with Leroy Vinnegar, on whose solo albums he would later appear, and in the early 1960s, Turner also recorded with Teddy Edwards. He never recorded as a leader....)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "87"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Rare_Genius",
/*title*/ "Rare Genius",
/*snippet*/ R"SNIPPET(...studio recordings and demos made in the 1970s, 1980s and 1990s together with some contemporary instrumental and backing vocal parts. Rare Genius: The Undiscovered Masters Remix album by Ray Charles Released 2010 Genre Soul Length 41:36 Label Concord Producer Ray Charles, John Burk Ray Charles chronology Ray Sings, Basie Swings (2006) Rare Genius: The Undiscovered Masters (2010) Professional ratings Review scores Source Rating Allmusic (link) PopMatters (link) All About Jazz (link) favorable...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "91"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Tangerine_Records_(1962)",
/*title*/ "Tangerine Records (1962)",
/*snippet*/ R"SNIPPET(...in 1962. ABC-Paramount Records promoted and distributed it. Early singles labels were orange and later became black, red and white. Many of the later recordings are now sought after in "Northern Soul" circles. In 1973 Charles left ABC, closed Tangerine and started Crossover Records. Ray Charles Enterprises owns the catalog. Tangerine Records Parent company ABC-Paramount Records Founded 1962 Founder Ray Charles Defunct 1973 Distributor(s) ABC-Paramount Records Genre R&B, soul music, jazz music...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "87"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Ray_Sings%2C_Basie_Swings",
/*title*/ "Ray Sings, Basie Swings",
/*snippet*/ R"SNIPPET(...from 1973 with newly recorded instrumental tracks by the contemporary Count Basie Orchestra. Professional ratings Review scores Source Rating AllMusic Ray Sings, Basie Swings Compilation album by Ray Charles, Count Basie Orchestra Released October 3, 2006 (2006-10-03) Recorded Mid-1970s, February - May 2006 Studio Los Angeles Genre Soul, jazz, Swing Label Concord/Hear Music Producer Gregg Field Ray Charles chronology Genius & Friends (2005) Ray Sings, Basie Swings (2006) Rare Genius: The Undiscovered Masters (2010)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "91"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/I_Remember_Brother_Ray",
/*title*/ "I Remember Brother Ray",
/*snippet*/ R"SNIPPET(...is an album by saxophonist David "Fathead" Newman, paying tribute to his bandleader and mentor Ray Charles, which was recorded in 2004 and released on the HighNote label the following year. I Remember Brother Ray Studio album by David "Fathead" Newman Released January 11, 2005 Recorded August 14, 2004 Studio Van Gelder Studio, Englewood Cliffs, NJ Genre Jazz Length 50:39 Label HighNote HCD 7135 Producer David "Fathead" Newman, Houston Person David "Fathead" Newman chronology Song for the New Man (2004) I Remember Brother Ray (2005) Cityscape (2006)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "96"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Light_Out_of_Darkness_(A_Tribute_to_Ray_Charles)",
/*title*/ "Light Out of Darkness (A Tribute to Ray Charles)",
/*snippet*/ R"SNIPPET(...to Ray Charles) is a 1993 studio album by Shirley Horn, recorded in tribute to Ray Charles. Light Out of Darkness (A Tribute to Ray Charles) Studio album by Shirley Horn Released 1993 Recorded April 30 and May 1–3, 1993, Clinton Recording Studios, New York City Genre Vocal jazz Length 62:53 Label Verve Producer Shirley Horn, Sheila Mathis, Richard Seidel, Lynn Butterer Shirley Horn chronology Here's to Life (1992) Light Out of Darkness (A Tribute to Ray Charles) (1993) I Love You, Paris (1994)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "100"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Soul_Meeting",
/*title*/ "Soul Meeting",
/*snippet*/ R"SNIPPET(...in 1957 and released in 1961 on Atlantic Records. The album was later re-issued together with the other Charles–Jackson recording, Soul Brothers, on a 2 CD compilation together with other 'bonus' tracks from the same recording sessions. Professional ratings Review scores Source Rating Down Beat (Original Lp release) AllMusic link Soul Meeting Studio album by Ray Charles, Milt Jackson Released 1961 Recorded April 10, 1958 Genre R&B, jazz Length 37:43 Label Atlantic Producer Tom Dowd Ray Charles chronology The Genius Sings the Blues (1961) Soul Meeting (1961) The Genius After Hours (1961) Alternative cover compilation CD re-issue...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "114"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Ray_Charles_in_Concert",
/*title*/ "Ray Charles in Concert",
/*snippet*/ R"SNIPPET(...between 1958 and 1975. In Concert Compilation album by Ray Charles Released 2003 Recorded Newport Jazz Festival (1958 July 5), Herndon Stadium Atlanta (1959 May 19), Sportpalast Berlin (1962 March 6), Shrine Auditorium Los Angeles (1964 September 20), Tokyo (1975 November 27) and Yokohama (1975 November 30) Genre R&B, soul Length 2 hours Label Rhino Handmade Producer Nesuhi Ertegun (Newport), Zenas Sears (Atlanta), Norman Granz (Berlin), Sid Feller (Los Angeles) and Ray Charles (Tokyo / Yokohama)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "118"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Sticks_and_Stones_(Titus_Turner_song)",
/*title*/ "Sticks and Stones (Titus Turner song)",
/*snippet*/ R"SNIPPET(...in a 1960 version by Ray Charles, who added the Latin drum part. It was his first R&B hit with ABC-Paramount, followed in 1961 with "Hit The Road Jack". The song was also covered by Jerry Lee Lewis, The Zombies, Wanda Jackson and The Kingsmen, as well as Joe Cocker on Mad Dogs and Englishmen, and Elvis Costello in 1994 on the extended play version of Kojak Variety. In 1997, jazz singer Roseanna Vitro included the tune in her tribute to Charles, Catchin’ Some Rays: The Music of Ray Charles....)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "113"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Do_the_Twist!_with_Ray_Charles",
/*title*/ "Do the Twist! with Ray Charles",
/*snippet*/ R"SNIPPET(...peaked at #11. Do the Twist! with Ray Charles Greatest hits album by Ray Charles Released 1961 Recorded 1954-1960 Genre R&B, Soul, Jazz Length 32:39 Label Atlantic Ray Charles chronology The Genius Sings the Blues (1961) Do the Twist! with Ray Charles (1961) Soul Meeting (1961) Professional ratings Review scores Source Rating Allmusic (link) The Rolling Stone Record Guide In 1963, the album got a new cover and was renamed The Greatest Ray Charles. Track listing and catalog number (Atlantic 8054) remained the same....)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "120"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/The_Great_Ray_Charles",
/*title*/ "The Great Ray Charles",
/*snippet*/ R"SNIPPET(...jazz album. Later CD re-issues often include as a bonus, six of eight tracks from The Genius After Hours. The original cover was by Marvin Israel. Professional ratings Review scores Source Rating Allmusic The Great Ray Charles Studio album by Ray Charles Released August 1957 Recorded April 30 - November 26, 1956 in New York City Genre Bebop Length 37:37 Label Atlantic Producer Ahmet Ertegün, Jerry Wexler Ray Charles chronology Ray Charles (or, Hallelujah I Love Her So) (1957) The Great Ray......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "127"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Ray_Charles_Live",
/*title*/ "Ray Charles Live",
/*snippet*/ R"SNIPPET(...Jazz Festival in 1958 and at Herndon Stadium in Atlanta in 1959, respectively). Later CD re-issues of this compilation include an additional, previously unreleased, track from the 1958 Newport concert, "Swanee River Rock." Live Live album by Ray Charles Released 1973 Recorded July 5, 1958 / May 28, 1959 Genre Soul, R&B Length 71:55 Label Atlantic 503 Producer Nesuhi Ertegün / Zenas Sears Ray Charles chronology From the Pages of My Mind (1986) Live (1973) Just Between Us (1988) Professional......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "133"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Blue_Funk_(Ray_Charles_song)",
/*title*/ "Soul Brothers",
/*snippet*/ R"SNIPPET(...on the original LP releases. Soul Brothers Studio album by Ray Charles, Milt Jackson Released June 1958 Recorded September 12, 1957 (Tracks 1-2) and April 10, 1958 (Tracks 3-7), in New York City Genre R&B, jazz Length 38:42 Label Atlantic, Studio One Producer Nesuhi Ertegun Ray Charles chronology Yes Indeed! (1958) Soul Brothers (1958) What'd I Say (1959) alternate release cover compilation CD / re-issue Professional ratings Review scores Source Rating AllMusic Down Beat (Original Lp release)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "135"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Soul_Brothers",
/*title*/ "Soul Brothers",
/*snippet*/ R"SNIPPET(...and the eleventh studio album by Milt Jackson and released by Atlantic Records in 1958. The album was later re-issued in a 2 CD compilation together with the other Charles–Jackson album Soul Meeting and included additional tracks from the same recording sessions not present on the original LP releases. Soul Brothers Studio album by Ray Charles, Milt Jackson Released June 1958 Recorded September 12, 1957 (Tracks 1-2) and April 10, 1958 (Tracks 3-7), in New York City Genre R&B, jazz Length 38:42 Label Atlantic, Studio One Producer Nesuhi Ertegun Ray Charles chronology Yes Indeed! (1958) Soul Brothers (1958) What'd I Say (1959) alternate release cover compilation CD / re-issue Professional ratings Review scores Source Rating AllMusic Down Beat (Original Lp release)...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "135"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Ray_Charles_and_Betty_Carter",
/*title*/ "Ray Charles and Betty Carter",
/*snippet*/ R"SNIPPET(...Betty Carter Studio album by Ray Charles and Betty Carter Released August 1961 Recorded August 23, 1960 - June 14, 1961 Genre Jazz Length 41:38 Label ABC Producer Sid Feller Ray Charles chronology Dedicated to You (1961) Ray Charles and Betty Carter (1961) The Genius Sings the Blues (1961) Betty Carter chronology The Modern Sound of Betty Carter (1960) Ray Charles and Betty Carter (1961) 'Round Midnight (1962) Alternative cover / re-issue 1998 Rhino CD re-issue with Dedicated to You Professional ratings Review scores Source Rating Allmusic...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "158"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Ingredients_in_a_Recipe_for_Soul",
/*title*/ "Ingredients in a Recipe for Soul",
/*snippet*/ R"SNIPPET(...6, 1960–April 28, 1963 Genre R&B, soul, country soul, vocal jazz Label ABC 465 Producer Sid Feller Ray Charles chronology Modern Sounds in Country and Western Music, Vol. 2 (1962) Ingredients in a Recipe for Soul (1963) Sweet & Sour Tears (1964) Alternative cover 1997 Rhino CD re-issue with Have a Smile with Me In 1990, the album was released on compact disc by DCC with four bonus tracks. In 1997, it was packaged together with 1964's Have a Smile with Me on a two-for-one CD reissue on Rhino with historical liner notes. Professional ratings Review scores......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "162"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/The_Genius_Sings_the_Blues",
/*title*/ "The Genius Sings the Blues",
/*snippet*/ R"SNIPPET(...jazz, and southern R&B. The photo for the album cover was taken by renowned photographer Lee Friedlander. The Genius Sings the Blues was reissued in 2003 by Rhino Entertainment with liner notes by Billy Taylor. The Genius Sings the Blues Compilation album by Ray Charles Released October 1961 Recorded 1952–1960 Genre Rhythm and blues, piano blues, soul Length 34:19 Label Atlantic SD-8052 Producer Ahmet Ertegün, Jerry Wexler Ray Charles chronology Ray Charles and Betty Carter (1961) The Genius......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "162"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/The_Genius_of_Ray_Charles",
/*title*/ "The Genius of Ray Charles",
/*snippet*/ R"SNIPPET(...the sixth studio album by American recording artist Ray Charles, released in 1959 by Atlantic Records. The album eschewed the soul sound of his 1950s recordings, which fused jazz, gospel, and blues, for swinging pop with big band arrangements. It comprises a first half of big band songs and a second half of string-backed ballads. The Genius of Ray Charles sold fewer than 500,000 copies and charted at number 17 on the Billboard 200. "Let the Good Times Roll" and "Don't Let the Sun Catch You Cryin'" were released as singles in 1959. The Genius of Ray Charles Studio album by Ray Charles Released October 1959 Recorded May 6 and June 23, 1959 at 6 West Recording in New......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "172"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Ray_Charles_in_Person",
/*title*/ "Ray Charles in Person",
/*snippet*/ R"SNIPPET(...night in Atlanta, Georgia at Morris Brown College's Herndon Stadium. All tracks from this album together with those from Ray Charles at Newport were also released on the 1987 Atlantic compilation CD, Ray Charles Live. Ray Charles: In Person Live album by Ray Charles Released July 1960 Recorded May 28, 1959 Genre R&B Length 29:19 Label Atlantic Producer Harris Zenas Ray Charles chronology The Genius of Ray Charles (1959) Ray Charles: In Person (1960) Genius + Soul = Jazz (1961) Re-issue cover 1987 re-issue / compilation Professional ratings Review scores Source Rating Allmusic The album was recorded by the concert sponsor, radio station WAOK. The station's lead disk jockey, Zenas "Daddy" Sears, recorded the album from the audience using a single microphone. The album is noted for its technical excellence in balancing band, singer, and audience, and also for its documentation of the jazzy R&B Ray Charles sound prior to his great crossover success....)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "176"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Don't_Let_the_Sun_Catch_You_Cryin'",
/*title*/ "Don't Let the Sun Catch You Cryin'",
/*snippet*/ R"SNIPPET(...R&B Sides" and No. 95 on the Billboard Hot 100. It was also recorded by Jackie DeShannon on her 1965 album This is Jackie De Shannon, Paul McCartney on his 1990 live album Tripping the Live Fantastic, Jex Saarelaht and Kate Ceberano on their album Open the Door - Live at Mietta's (1992) and jazz singer Roseanna Vitro on her 1997 album Catchin’ Some Rays: The Music of Ray Charles. Karin Krog and Steve Kuhn include it on their 2005 album, Together Again. Steve Alaimo released a version in 1963...)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "185"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/I_Don't_Need_No_Doctor",
/*title*/ "I Don't Need No Doctor",
/*snippet*/ R"SNIPPET(...jazz guitar player John Scofield recorded a version for his album That's What I Say: John Scofield Plays the Music of Ray Charles in 2005, featuring the blues guitarist John Mayer on additional guitar and vocals. Mayer covered the song again with his band during his tour in summer 2007. A recorded live version from a Los Angeles show during that tour is available on Mayer's CD/DVD release Where the Light Is. A Ray Charles tribute album also provided the impetus for jazz singer Roseanna Vitro's......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "558"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/If_You_Go_Away",
/*title*/ "If You Go Away",
/*snippet*/ R"SNIPPET(...Jazz Length 3:49 Label Epic Records Songwriter(s) Jacques Brel, Rod McKuen Producer(s) Bob Morgan Damita Jo singles chronology "Gotta Travel On" (1965) "If You Go Away" (1966) "Walk Away" (1967) Damita Jo reached #10 on the Adult Contemporary chart and #68 on the Billboard Hot 100 in 1966 for her version of the song. Terry Jacks recorded a version of the song which was released as a single in 1974 and reached #29 on the Adult Contemporary chart, #68 on the Billboard Hot 100, and went to #8 in......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "204"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Anthology_(Ray_Charles_album)",
/*title*/ "Anthology (Ray Charles album)",
/*snippet*/ R"SNIPPET(...Charles' '60s and '70s ABC-Paramount material", while Rhino Records, the issuing label, refers to it in the liner notes as "the compact disc edition of Ray Charles' Greatest Hits", alluding to the two Rhino LPs issued the same year. It is one of the first CDs to be released by Rhino. Anthology Greatest hits album by Ray Charles Released 1988 Recorded 1960-1972 Genre R&B soul jazz piano blues Length 67:25 (original), 66:18 (re-release) Label Rhino Producer Ray Charles Steve Hoffman Richard Foos Ray Charles chronology Just Between Us (1988) Anthology (1988) Would You Believe? (1990) Posthumous cover Professional ratings Review scores Source Rating AllMusic Charles, who retained the master rights (currently controlled by his estate since his June 2004 passing) to his ABC-Paramount recordings, supervised a remixing of the 20 songs on this compilation especially for this......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "265"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Ray_Charles",
/*title*/ "Ray Charles",
/*snippet*/ R"SNIPPET(...1960s Background information Birth name Ray Charles Robinson Born (1930-09-23)September 23, 1930 Albany, Georgia, U.S. Died June 10, 2004(2004-06-10) (aged 73) Beverly Hills, California, U.S. Genres R&B soul blues gospel country jazz rock and roll Occupation(s) musician singer songwriter composer Instruments Vocals piano Years active 1947–2004 Labels Atlantic ABC Tangerine Warner Bros. Swing Time Concord Columbia Flashback Associated acts The Raelettes USA for Africa Billy Joel Gladys Knight Website raycharles.com Charles pioneered the soul music genre during the 1950s by combining blues, rhythm and blues, and gospel styles into the music he recorded for Atlantic. He contributed to the integration of country music......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "416"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/The_Pages_of_My_Mind",
/*title*/ "Ray Charles",
/*snippet*/ R"SNIPPET(...jazz rock and roll Occupation(s) musician singer songwriter composer Instruments Vocals piano Years active 1947–2004 Labels Atlantic ABC Tangerine Warner Bros. Swing Time Concord Columbia Flashback Associated acts The Raelettes USA for Africa Billy Joel Gladys Knight Website raycharles.com Charles pioneered the soul music genre during the 1950s by combining blues, rhythm and blues, and gospel styles into the music he recorded for Atlantic. He contributed to the integration of country music......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "416"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Here_We_Go_Again_(Ray_Charles_song)",
/*title*/ "Here We Go Again (Ray Charles song)",
/*snippet*/ R"SNIPPET(...was first covered in an instrumental jazz format, and many of the more recent covers have been sung as duets, such as one with Willie Nelson and Norah Jones with Wynton Marsalis accompanying. The song was released on their 2011 tribute album Here We Go Again: Celebrating the Genius of Ray Charles. The song lent its name to Red Steagall's 2007 album as well. Cover versions have appeared on compilation albums by a number of artists, even some who did not release "Here We Go Again" as a single....)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "417"
),
SEARCH_RESULT(
/*link*/ "/ROOT%23%3F/content/zimfile/A/Modern_Sounds_in_Country_and_Western_Music",
/*title*/ "Modern Sounds in Country and Western Music",
/*snippet*/ R"SNIPPET(...jazz. Charles produced the album with Sid Feller, who helped the singer select songs to record, and performed alongside saxophonist Hank Crawford, a string section conducted by Marty Paich, and a big band arranged by Gil Fuller and Gerald Wilson. Modern Sounds in Country and Western Music was an immediate critical and commercial success. The album and its four hit singles brought Charles greater mainstream notice and recognition in the pop market, as well as airplay on both R&B and country radio......)SNIPPET",
/*bookTitle*/ "Ray Charles",
/*wordCount*/ "424"
)
};
// Snippets (i.e. the contents of the element) in the search results can
// slightly vary depending on
//
// - the version of libxapian (for example, in various Packages CI builds)
// - the parameters of the pagination (if using libzim before v7.2.2).
//
// In order to be able to share the same expected output data
// LARGE_SEARCH_RESULTS between multiple build platforms and test-points
// of the ServerSearchTest.searchResults test-case
//
// 1. Snippets are excluded from the plain-text comparison of actual and
// expected HTML strings. This is done with the help of the
// function maskSnippetsInHtmlSearchResults()
//
// 2. Snippets are checked separately. If a plain-text comparison fails
// then a weaker comparison is attempted. Currently it works by testing
// that the actual snippet is a substring of the "expected" snippet
// (the "..." omitted text markes on the snippet boundaries are taken
// into account). The implementation of that approach is via the
// isSubSnippet() function.
//
// Therefore the "expected" snippets in the test data must be a union of
// all possible snippets produced at runtime for a given (document, search
// terms) pair on all platforms of interest:
//
// - Overlapping snippets must be properly merged
//
// - Non-overlapping snippets can be joined with a " ... " in between.
//
typedef std::vector Snippets;
const char SNIPPET_REGEX_FOR_HTML[] = "(.+)";
std::string maskSnippetsInHtmlSearchResults(std::string s)
{
return replace(s, SNIPPET_REGEX_FOR_HTML, "SNIPPET TEXT WAS MASKED");
}
Snippets extractSearchResultSnippetsFromHtml(const std::string& html)
{
Snippets snippets;
const std::regex snippetRegex(SNIPPET_REGEX_FOR_HTML);
std::sregex_iterator snippetIt(html.begin(), html.end(), snippetRegex);
const std::sregex_iterator end;
for ( ; snippetIt != end; ++snippetIt)
{
const std::smatch snippetMatch = *snippetIt;
snippets.push_back(snippetMatch[1].str());
}
return snippets;
}
const char SNIPPET_REGEX_FOR_XML[] = "(?!Search result for)(.+)";
std::string maskSnippetsInXmlSearchResults(std::string s)
{
return replace(s, SNIPPET_REGEX_FOR_XML, "SNIPPET TEXT WAS MASKED");
}
Snippets extractSearchResultSnippetsFromXml(const std::string& xml)
{
Snippets snippets;
const std::regex snippetRegex(SNIPPET_REGEX_FOR_XML);
std::sregex_iterator snippetIt(xml.begin(), xml.end(), snippetRegex);
const std::sregex_iterator end;
for ( ; snippetIt != end; ++snippetIt)
{
const std::smatch snippetMatch = *snippetIt;
snippets.push_back(snippetMatch[1].str());
}
return snippets;
}
bool isValidSnippet(const std::string& s)
{
return s.size() >= 250
&& s.find("") != std::string::npos
&& s.find("") != std::string::npos;
}
size_t leadingDotCount(const std::string& s)
{
return s.find_first_not_of(".");
}
size_t trailingDotCount(const std::string& s)
{
return s.size() - 1 - s.find_last_not_of(".");
}
bool isSubSnippet(std::string subSnippet, const std::string& superSnippet)
{
const auto leadingDotCountInSubSnippet = leadingDotCount(subSnippet);
const auto trailingDotCountInSubSnippet = trailingDotCount(subSnippet);
const bool subSnippetIsHeadless = leadingDotCountInSubSnippet >= 3;
const bool subSnippetIsTailless = trailingDotCountInSubSnippet >= 3;
if ( subSnippetIsHeadless )
{
subSnippet = subSnippet.substr(leadingDotCountInSubSnippet);
}
if ( subSnippetIsTailless )
{
subSnippet = subSnippet.substr(0, subSnippet.size() - trailingDotCountInSubSnippet);
}
const auto pos = superSnippet.find(subSnippet);
if ( pos == std::string::npos )
return false;
if ( subSnippetIsHeadless == (pos == 0) )
return false;
if ( subSnippetIsTailless == (pos + subSnippet.size() == superSnippet.size()) )
return false;
return true;
}
#define RAYCHARLESZIMID "6f1d19d0-633f-087b-fb55-7ac324ff9baf"
#define EXAMPLEZIMID "5dc0b3af-5df2-0925-f0ca-d2bf75e78af6"
struct TestData
{
struct PaginationEntry
{
std::string label;
size_t start;
bool selected;
};
std::string query;
int start;
size_t resultsPerPage;
size_t totalResultCount;
size_t firstResultIndex;
std::vector results;
std::vector pagination;
static std::string makeUrl(const std::string& query, int start, size_t resultsPerPage)
{
std::string url = "/ROOT%23%3F/search?" + query;
if ( start >= 0 ) {
url += "&start=" + std::to_string(start);
}
if ( resultsPerPage != 0 ) {
url += "&pageLength=" + std::to_string(resultsPerPage);
}
return url;
}
std::string extractQueryValue(const std::string& key) const
{
const std::string p = key + "=";
const size_t i = query.find(p);
if (i == std::string::npos) {
return "";
}
std::string r = query.substr(i + p.size());
return r.substr(0, r.find("&"));
}
std::string getPattern() const
{
return kiwix::urlDecode(extractQueryValue("pattern"), true);
}
std::string getLang() const
{
return extractQueryValue("books.filter.lang");
}
std::string url() const
{
return makeUrl(query, start, resultsPerPage);
}
std::string xmlSearchUrl() const
{
return url() + "&format=xml";
}
std::string expectedHtmlHeader() const
{
std::string header = totalResultCount == 0
? R"(No results were found for "PATTERN")"
: R"(Results FIRSTRESULT-LASTRESULT of RESULTCOUNT for "PATTERN")";
const size_t lastResultIndex = std::min(totalResultCount, firstResultIndex + results.size() - 1);
header = replace(header, "FIRSTRESULT", std::to_string(firstResultIndex));
header = replace(header, "LASTRESULT", std::to_string(lastResultIndex));
header = replace(header, "RESULTCOUNT", std::to_string(totalResultCount));
header = replace(header, "PATTERN", getPattern());
return "%USERLANGMARKER%" + header;
}
std::string expectedHtmlResultsString() const
{
if ( results.empty() ) {
return "\n ";
}
std::string s;
for ( const auto& r : results ) {
s += "\n
";
s += maskSnippetsInHtmlSearchResults(r.getHtml());
s += "