A date range is ignored by arXiv and by citation expansion, and text-fetch pmc has no date options
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 54/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- data-engineering
Research direction
Start by reading SearchConfig.to_arxiv_query() and arxiv.py for arXiv date handling, then trace expand_papers() in europepmc.py and the text-fetch pmc fetch options. Compare existing date option names in the Europe PMC, ChemRxiv, bioRxiv and medRxiv commands. Done means date ranges work for arXiv or produce a clear error, citation expansion has an optional independent range with excluded-paper counts in --dry-run --json, and PMC accepts consistent date options with old spellings retained as aliases.
Written by the indexing model from the issue text.
Description
Part of lanl/chatty#65.
A search config's date_range ({"start": "2020/01/01", "end": "2024/12/31"}) limits PubMed Central ([dp]), Europe PMC (FIRST_PDATE), bioRxiv, medRxiv, ChemRxiv and OSTI. Three places don't apply it:
- arXiv.
SearchConfig.to_arxiv_query()adds no date clause, andarxiv.pydoesn't filter results by date. Afetchwith arXiv among its sources and a date range downloads arXiv papers from any year, with no warning. - Citation expansion.
expand_papers()ineuropepmc.pytakes no dates. A corpus limited to 2020–2024 takes in every reference and citation of its seeds, from any year. Sometimes that's what's wanted, since a 2022 paper's key references are older, so it should be a choice rather than a fixed rule. text-fetch pmc. It has no date options, whileeuropepmcandchemrxivtake--date-from/--date-toandbiorxivandmedrxivtake--start-date/--end-date. For PMC, a date goes in a config file or is written by hand into--query.
Acceptance criteria:
- arXiv applies the date range (its API accepts a
submittedDate:[... TO ...]range in the query), or the command refuses a date range for arXiv with a clear error instead of ignoring it. - Expansion takes its own date range, off by default: for example
expansion_date_rangein the config and--expansion-date-from/--expansion-date-to.--dry-run --jsonreports how many expanded papers it left out. text-fetch pmc fetchtakes--date-from/--date-to, likeeuropepmc.- The date options are spelled the same across commands, keeping the old spellings as aliases.
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- Avg merge
- 1h 1m
- Merged PRs (30d)
- 31
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lanl/text-fetch
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lanl/text-fetch#92 ·
Maintainers usually reply within 1 day
-
area:cli area:pdf enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lanl/text-fetch#84 ·
Maintainers usually reply within 1 day
-
area:config area:output area:sources enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
lanl/text-fetch#88 ·
Maintainers usually reply within 1 day
-
area:cli area:expansion area:fetch enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
lanl/text-fetch#87 ·
Maintainers usually reply within 1 day
-
area:config area:sources enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
lanl/text-fetch#86 ·
Maintainers usually reply within 1 day
Similar issues
-
[Bug]: streaming_end_of_stream_only guardrails rescan the whole stream on every chunk - blocks event loopPossibly taken A pull request linked to this issue is open or already merged. Openbug llm translation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
arith ascend bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
tile-ai/tilelang#5173 · 2 comments · 1 reaction ·
Maintainers usually reply within 3 days
-
kind: for-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
monumental-archive/.github#2284 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
TanbirRamim/open-source-radar#761 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ktwu01/benchmark-radar#1450 ·
Maintainers usually reply within 1 day