sul-dlss/sw_index_tests — pull request #32 by lmcglohon (2014-08-04 16:29:32+00:00)
Title: Fixed have_at_most values and changed item in first 20

@ndushay
1) advanced search facets format video, location green, language english before topics selected
Failure/Error: resp.should have_at_most(35100).results
expected at most 35100 results, got 35103
# ./spec/advanced_search_spec.rb:402:in `block (4 levels) in '

2) CJK Advanced Search Publication Info Publisher: Mineruba Shobō ミネルヴァ 書房 matches without spaces present
Failure/Error: @resp.should include(no_space_exact_matches).in_first(20).documents
expected response to include documents ["10531238", "10355212"] in first 20 results: {"responseHeader"=>{"status"=>0, "QTime"=>332, "params"=>{"mm"=>"3<86%", "facet"=>"false", "fl"=>"id", "q"=>"_query_:\"{!edismax qf=$qf_pub_info_cjk pf=$pf_pub_info_cjk pf3=$pf3_pub_info_cjk pf2=$pf2_pub_info_cjk}ミネルヴァ 書房\"", "testing"=>"sw_index_test", "qs"=>"0", "wt"=>"ruby", "defType"=>"lucene"}}, "response"=>{"numFound"=>950, "start"=>0, "docs"=>[{"id"=>"4196577"}, {"id"=>"4203788"}, {"id"=>"4199853"}, {"id"=>"4198109"}, {"id"=>"4203994"}, {"id"=>"4197487"}, {"id"=>"10432984"}, {"id"=>"10572544"}, {"id"=>"10412633"}, {"id"=>"10432953"}, {"id"=>"10385052"}, {"id"=>"10359409"}, {"id"=>"10359292"}, {"id"=>"10355235"}, {"id"=>"10355212"}, {"id"=>"10355233"}, {"id"=>"10292004"}, {"id"=>"10357191"}, {"id"=>"10360798"}, {"id"=>"10468584"}]}}
Diff:
@@ -1,2 +1,38 @@
-[["10531238", "10355212"]]
+{"responseHeader"=>
+ {"status"=>0,
+ "QTime"=>332,
+ "params"=>
+ {"mm"=>"3<86%",
+ "facet"=>"false",
+ "fl"=>"id",
+ "q"=>
+ "_query_:\"{!edismax qf=$qf_pub_info_cjk pf=$pf_pub_info_cjk pf3=$pf3_pub_info_cjk pf2=$pf2_pub_info_cjk}ミネルヴァ 書房\"",
+ "testing"=>"sw_index_test",
+ "qs"=>"0",
+ "wt"=>"ruby",
+ "defType"=>"lucene"}},
+ "response"=>
+ {"numFound"=>950,
+ "start"=>0,
+ "docs"=>
+ [{"id"=>"4196577"},
+ {"id"=>"4203788"},
+ {"id"=>"4199853"},
+ {"id"=>"4198109"},
+ {"id"=>"4203994"},
+ {"id"=>"4197487"},
+ {"id"=>"10432984"},
+ {"id"=>"10572544"},
+ {"id"=>"10412633"},
+ {"id"=>"10432953"},
+ {"id"=>"10385052"},
+ {"id"=>"10359409"},
+ {"id"=>"10359292"},
+ {"id"=>"10355235"},
+ {"id"=>"10355212"},
+ {"id"=>"10355233"},
+ {"id"=>"10292004"},
+ {"id"=>"10357191"},
+ {"id"=>"10360798"},
+ {"id"=>"10468584"}]}}
# ./spec/cjk/cjk_advanced_search_spec.rb:47:in `block (4 levels) in '

3) Korean spacing Contemporary North Korean literature 북한 의 현대 문학 (spacing in catalog) behaves like good results for 북한의 현대문학 behaves like good results for query everything search has between 4 and 260 results
Failure/Error: resp.should have_at_most(max).results
expected at most 260 results, got 261
Shared Example Group: "good results for query" called from ./spec/cjk/korean_spacing_spec.rb:277
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '