Skip to content

Commit

Permalink
Merge pull request #1472 from NYPL/MLN-1304
Browse files Browse the repository at this point in the history
added test cases
  • Loading branch information
gonuguntla authored Dec 17, 2024
2 parents 2a6623b + fdcbffd commit 0d442c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/elastic_search_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def setup
@mintest_mock2 = Minitest::Mock.new
# models the format of the ES query terms, the structure we'll be sending our search requests in
@agg_hash = {"language" => {:terms => {:field => "primary_language", :size => 100, :order => {:_key => "asc"}}},
"set type" => {:terms => {:field => "set_type", :size => 10, :order => {:_key => "asc"}}},
"set type" => {:terms => {:field => "set_type", :size => 100, :order => {:_key => "asc"}}},
"availability" => {:terms => {:field => "availability.raw", :size => 10, :order => {:_key => "asc"}}},
"area of study" => {:terms => {:field => "area_of_study", :size => 100, :order => {:_key => "asc"}}},
"subjects" => {:nested => {:path => "subjects"}, :aggregations => {:subjects => {:composite => {:size => 3000,
Expand Down Expand Up @@ -54,7 +54,7 @@ def setup
{:multi_match => {:query => "test", :fuzziness => 1, :fields => ["subjects.title^3"]}}]}},
{:term => {:'title.keyword' => {:value => "test"}}}]}}]}}},
{"language" => {:terms => {:field => "primary_language", :size => 100, :order => {:_key => "asc"}}},
"set type" => {:terms => {:field => "set_type", :size => 10, :order => {:_key => "asc"}}},
"set type" => {:terms => {:field => "set_type", :size => 100, :order => {:_key => "asc"}}},
"availability" => {:terms => {:field => "availability.raw", :size => 10, :order => {:_key => "asc"}}},
"area of study" => {:terms => {:field => "area_of_study", :size => 100, :order => {:_key => "asc"}}},
"subjects" =>
Expand Down

0 comments on commit 0d442c1

Please sign in to comment.