Skip to content

Commit

Permalink
feat: improve search to only search for title
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiOnGitHub committed Dec 21, 2024
1 parent 885c4f3 commit 4153952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/files/sources/dataverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def get_file_containers(
params["fq"] = "publicationStatus:Draft"
params["per_page"] = limit or DEFAULT_PAGE_LIMIT
params["start"] = offset
params["q"] = query or "*"
params["q"] = "title:"+query if query else "*"
params["sort"] = sort_by or "date" # can be either "name" or "date"
response_data = self._get_response(user_context, request_url, params=params)
total_hits = response_data["data"]["total_count"]
Expand Down

0 comments on commit 4153952

Please sign in to comment.