Skip to content

Commit

Permalink
make sure client_id is treated as string. #205
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Feb 18, 2019
1 parent e4181e4 commit 830dfe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/indexable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def query(query, options={})
must << { term: { aasm_state: options[:state] }} if options[:state].present?
must << { term: { "types.resourceTypeGeneral": options[:resource_type_id].underscore.camelize }} if options[:resource_type_id].present?
must << { terms: { provider_id: options[:provider_id].split(",") }} if options[:provider_id].present?
must << { terms: { client_id: options[:client_id].split(",") }} if options[:client_id].present?
must << { terms: { client_id: options[:client_id].to_s.split(",") }} if options[:client_id].present?
must << { term: { prefix: options[:prefix] }} if options[:prefix].present?
must << { term: { "author.id" => "https://orcid.org/#{options[:person_id]}" }} if options[:person_id].present?
must << { range: { created: { gte: "#{options[:created].split(",").min}||/y", lte: "#{options[:created].split(",").max}||/y", format: "yyyy" }}} if options[:created].present?
Expand Down

0 comments on commit 830dfe2

Please sign in to comment.