lukasschwab / arxiv.py

Python wrapper for the arXiv API
MIT License
1.11k stars 123 forks source link

How to search for specific strings within the different areas? #152

Closed neural-loop closed 11 months ago

neural-loop commented 11 months ago

I've tried:

abs:ai alignment
abs:(ai alignment)
abs:'ai alignment'
abs:'ai+alignment'
'abs:ai alignment' 
def search_arxiv(query):
    client = arxiv.Client()
    search = arxiv.Search(query=query, max_results=5, sort_by=arxiv.SortCriterion.SubmittedDate)
    return list(client.results(search))

And so on, but it isn't returning results which contain "ai alignment" it seems to match on AI or alignment, but not the strings together.

neural-loop commented 11 months ago

I found abs:"ai alignment" seems to be the way