Skip to content

Sample Queries

Banu Hapeloglu Kutlu edited this page Mar 14, 2019 · 1 revision

Basic Common Searches 

Feature: Known item search by title (basic)

As a user
When I enter an item's title into the basic search box (e.g. "Amish Quilts")
Then the results I get should prioritize things with matching titles (11530547 & 11332882 )

Solr query: get select {"qt"=>nil, "facet.field"=>["all_authors_facet_ssim", "format", "language_facet_ssim", "{!ex=pub_date_ssim_single}pub_date_ssim", "subject_topic_facet_ssim", "genre_facet_ssim", "genre_full_facet_ssim", "lc_1letter_facet_sim"], "facet.query"=>[], "facet.pivot"=>[], "fq"=>[], "hl.fl"=>[], "rows"=>10, "facet"=>true, "f.language_facet_ssim.facet.limit"=>11, "f.subject_topic_facet_ssim.facet.limit"=>21, "f.genre_facet_ssim.facet.limit"=>21, "sort"=>"score desc, pub_date_sort_itsi desc, title_ssort asc"}

Feature: Known item search by series title

As a user
When I search for a series title (e.g. "Black studies & critical thinking") I should get results including books in that series (22861023 & 22861022)

Solr query: get select {"qt"=>nil, "facet.field"=>["all_authors_facet_ssim", "format", "language_facet_ssim", "{!ex=pub_date_ssim_single}pub_date_ssim", "subject_topic_facet_ssim", "genre_facet_ssim", "genre_full_facet_ssim", "lc_1letter_facet_sim"], "facet.query"=>[], "facet.pivot"=>[], "fq"=>[], "hl.fl"=>[], "rows"=>10, "q"=>"Black studies & critical thinking", "facet"=>true, "f.language_facet_ssim.facet.limit"=>11, "f.subject_topic_facet_ssim.facet.limit"=>21, "f.genre_facet_ssim.facet.limit"=>21, "sort"=>"score desc, pub_date_sort_itsi desc, title_ssort asc", "defType"=>"edismax"}

Feature: Known item search by catkey

As a user
When I search for a catkey
Then the first result I get is that catkey. (e.g. 4436334)

Solr query: get select {"qt"=>nil, "facet.field"=>["all_authors_facet_ssim", "format", "language_facet_ssim", "{!ex=pub_date_ssim_single}pub_date_ssim", "subject_topic_facet_ssim", "genre_facet_ssim", "genre_full_facet_ssim", "lc_1letter_facet_sim"], "facet.query"=>[], "facet.pivot"=>[], "fq"=>[], "hl.fl"=>[], "rows"=>2, "q"=>"4436334", "facet"=>false, "f.language_facet_ssim.facet.limit"=>11, "f.subject_topic_facet_ssim.facet.limit"=>21, "f.genre_facet_ssim.facet.limit"=>21, "sort"=>"score desc, pub_date_sort_itsi desc, title_ssort asc", "defType"=>"edismax", "fl"=>"id"}

Feature: Known item search by ISBN (basic)

As a user
When I Keyword search for an ISBN (as  or 978-0820330365 or 978-0-8203-3036-5)
Then I should find the book I'm looking for (4436334)

Solr query: get select {"qt"=>nil, "facet.field"=>["all_authors_facet_ssim", "format", "language_facet_ssim", "{!ex=pub_date_ssim_single}pub_date_ssim", "subject_topic_facet_ssim", "genre_facet_ssim", "genre_full_facet_ssim", "lc_1letter_facet_sim"], "facet.query"=>[], "facet.pivot"=>[], "fq"=>[], "hl.fl"=>[], "rows"=>10, "q"=>"9780820330365", "facet"=>true, "f.language_facet_ssim.facet.limit"=>11, "f.subject_topic_facet_ssim.facet.limit"=>21, "f.genre_facet_ssim.facet.limit"=>21, "sort"=>"score desc, pub_date_sort_itsi desc, title_ssort asc", "defType"=>"edismax"}

Feature: Known item search by ISSN (basic)

As a user
When Keyword search for an ISSN (as 1460-3586 or 14603586)
Then I should find what I'm looking for (23912499)

Solr query: get select {"qt"=>nil, "facet.field"=>["all_authors_facet_ssim", "format", "language_facet_ssim", "{!ex=pub_date_ssim_single}pub_date_ssim", "subject_topic_facet_ssim", "genre_facet_ssim", "genre_full_facet_ssim", "lc_1letter_facet_sim"], "facet.query"=>[], "facet.pivot"=>[], "fq"=>[], "hl.fl"=>[], "rows"=>10, "q"=>"14603586", "facet"=>true, "f.language_facet_ssim.facet.limit"=>11, "f.subject_topic_facet_ssim.facet.limit"=>21, "f.genre_facet_ssim.facet.limit"=>21, "sort"=>"score desc, pub_date_sort_itsi desc, title_ssort asc", "defType"=>"edismax"}

Feature: Keyword search by person author (natural order)

As a user
When I search for an author by name in natural order (e.g. Janneken Smucker)
Then my results should be primarily their books (e.g. 11530547 & 9612653 & 6601584)

Solr query: get select {"qt"=>nil, "facet.field"=>["all_authors_facet_ssim", "format", "language_facet_ssim", "{!ex=pub_date_ssim_single}pub_date_ssim", "subject_topic_facet_ssim", "genre_facet_ssim", "genre_full_facet_ssim", "lc_1letter_facet_sim"], "facet.query"=>[], "facet.pivot"=>[], "fq"=>[], "hl.fl"=>[], "rows"=>10, "q"=>"Janneken Smucker", "facet"=>true, "f.language_facet_ssim.facet.limit"=>11, "f.subject_topic_facet_ssim.facet.limit"=>21, "f.genre_facet_ssim.facet.limit"=>21, "sort"=>"score desc, pub_date_sort_itsi desc, title_ssort asc", "defType"=>"edismax"}
Clone this wiki locally