Sort search results from rentrez by relevance

I am looking for PubMed using the rentrez package in R, and would like the results to be sorted by relevance. They are currently sorted by publication date.

library(rentrez)

query = 'regression to the mean[TITL]'
entrez_search = entrez_search(db="pubmed", term=query, retmax=30)
paper_data = entrez_summary(db="pubmed", id=entrez_search$ids)
dates = extract_from_esummary(paper_data, c("pubdate"))
+4
source share
2 answers

As I understand it, the “relevance” information is related to this search (and not a summary of records or complete records that can be downloaded later), and there is no rating or similar statement about how relevant this search result is to the data returned by the entrez search.

, , sort=relevance - . , :

default_search = entrez_search(db="pubmed", term=query, retmax=30)
default_search_again = entrez_search(db="pubmed", term=query, retmax=30)
all(default_search$ids == default_search_again$ids)

.

[1] TRUE

relevance :

rel_search = entrez_search(db="pubmed", term=query, retmax=30, sort="relevance")
default_search$ids == rel_search$ids

.

 [1]  TRUE  TRUE  TRUE  TRUE FALSE FALSE  TRUE FALSE FALSE  TRUE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE  TRUE FALSE FALSE  TRUE  TRUE  TRUE  TRUE
[25] FALSE FALSE  TRUE  TRUE FALSE FALSE

summary, fetch link , (?) ?

+3

extract_from_esummary paper_data esummary . pubdate.

paper_data, . str(paper_data), , extract_from_esummary, . ISSN:

issn <- extract_from_esummary(paper_data, c("issn"))

, .

+1

All Articles