Skip to content

Commit

Permalink
fix program query
Browse files Browse the repository at this point in the history
  • Loading branch information
YaphetKG committed Aug 12, 2024
1 parent 4030b4f commit 29d155d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dug/core/async_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,10 @@ async def search_program(self, program_name=None, offset=0, size=None):
# Add conditions based on user input
if program_name:
# Lowercase the program_name before adding it to the query
program_name = program_name.lower()
query_body["query"]["bool"]["must"].append({
"match": {"data_type": program_name}
})
# program_name = program_name.lower()
query_body["query"]["bool"]["must"].append(
{"term": {"data_type.keyword": program_name}}
)

#print("query_body", query_body)

Expand Down

0 comments on commit 29d155d

Please sign in to comment.