This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Use terms
instead of term
#698
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
Projects
Problem
In the search controller, when performing filtering for more than one value, we use an array of
term
queries instead of usingterms
.openverse-api/api/catalog/api/controllers/search_controller.py
Lines 172 to 177 in 6cc0551
Description
Replace the array of
term
queries with a singularterm
query. According to the ES docs, theterms
query is functionally identical toterm
.Additional context
For an example, a
terms
query is used just a few lines below in the same file, inside the_exclude_filtered
function.openverse-api/api/catalog/api/controllers/search_controller.py
Line 197 in 6cc0551
Implementation
The text was updated successfully, but these errors were encountered: