monarch-initiative / automaxo

https://monarch-initiative.github.io/automaxo/
MIT License
1 stars 1 forks source link

Relax search filter (or provide option to do so) #4

Closed caufieldjh closed 1 month ago

caufieldjh commented 7 months ago

In the document retrieval functions: https://github.com/monarch-initiative/automaxo/blob/d931d9c9ac06bae8c36c9bf113a5347b5804fe7e/scripts/retrive_pmids.py#L35-L43

The search_term is hardcoded to search on title or abstract, which is great if you're looking for specific disease names. If you are trying to retrieve a specific document or set of documents, this doesn't work as well since the PMID is found elsewhere in the document metadata.

One solution would be to have the function default to adding [Title/Abstract] to the search string like it currently does, but provide an additional argument like raw to allow passing a search string without that filter.

pnrobinson commented 1 month ago

@caufieldjh @enockniyonkuru was this issue resolved?

enockniyonkuru commented 1 month ago

Yes the issue was resolved!