Skip to content

Commit

Permalink
allow queries by provider symbol in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed May 24, 2019
1 parent 5fea883 commit 185395c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def as_indexed_json(options={})
end

def self.query_fields
['symbol^10', 'name^10', 'description^10', 'contact_name^10', 'contact_email^10', 'domains', 'url', 'software^3', 'repository.subjects.text^3', 'repository.certificates.text^3', '_all']
['uid^10', 'symbol^10', 'name^5', 'description^5', 'contact_name^5', 'contact_email^5', 'domains', 'url', 'software^3', 'repository.subjects.text^3', 'repository.certificates.text^3', '_all']
end

def self.query_aggregations
Expand Down
2 changes: 1 addition & 1 deletion app/models/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def as_indexed_json(options={})
end

def self.query_fields
['symbol^10', 'name^10', 'contact_name^10', 'contact_email^10', '_all']
['uid^10', 'symbol^10', 'name^5', 'contact_name^5', 'contact_email^5', '_all']
end

def self.query_aggregations
Expand Down

0 comments on commit 185395c

Please sign in to comment.