Skip to content

Commit

Permalink
Removed support for multi_queries
Browse files Browse the repository at this point in the history
  • Loading branch information
pschijven committed Sep 22, 2023
1 parent 925a7b3 commit b26f5b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/innoq/iqvoc.git
revision: 3e294f4401916fd5eab0154b3fc22ee5b8f387bb
revision: 77b2fadd1750be6b52cd73ae447ce0f353dcd3fb
branch: master
specs:
iqvoc (4.14.0)
Expand Down Expand Up @@ -303,7 +303,7 @@ GEM
mini_magick (4.12.0)
mini_mime (1.1.5)
mini_portile2 (2.8.4)
minitest (5.19.0)
minitest (5.20.0)
msgpack (1.7.2)
msgpack (1.7.2-java)
multi_json (1.15.0)
Expand Down
19 changes: 0 additions & 19 deletions app/models/inflectional/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,6 @@ def self.candidates_for(base_form, language, inflectional_code)
end
end

def self.forces_multi_query?
true
end

def self.supports_multi_query?
true
end

def self.single_query(params = {})
query_str = build_query_string(params)

Expand All @@ -302,17 +294,6 @@ def self.single_query(params = {})
scope.map { |result| SearchResult.new(result) }
end

# def self.single_query(params = {})
# query_str = build_query_string(params)
#
# Label::UMT::Base.select("DISTINCT #{Label::UMT::Base.table_name}.*").
# joins(:inflectionals).
# where(Inflectional::Base.by_query_value(query_str)).
# by_language(params[:languages].to_a).
# published.
# order("LOWER(#{Inflectional::Base.table_name}.value)")
# end

def self.search_result_partial_name
'partials/inflectional/search_result'
end
Expand Down

0 comments on commit b26f5b5

Please sign in to comment.