Skip to content

Commit

Permalink
fix: combined search actually returns related articles to all keywords
Browse files Browse the repository at this point in the history
Signed-off-by: eloinoel <[email protected]>
  • Loading branch information
eloinoel committed Jul 12, 2024
1 parent 6c0958d commit 84dd471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/Scrapers/Archive/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def query_ids_from_keywords(cls, keywords, max_results=100_000) -> list[str]:
This method is used for a single query with multiple keywords.
"""
arxiv_links = ArchiveScraper.search_arxiv_ids(' '.join(keywords), max_results)
arxiv_links = ArchiveScraper.search_arxiv_ids(' AND '.join(keywords), max_results)
return [cls.extract_arxiv_id_from_url(url) for url in arxiv_links]

@classmethod
Expand Down

0 comments on commit 84dd471

Please sign in to comment.