simple search application which places sinatra endpoint on xapian