Functions
The following functions are available globally.
-
Returns a query for retrieving the articles containing provided term in the specified field.
- Parameter term: A string to search for. - Parameter field: An article field to be searched for provided term.
Default value of
field
parameter isis.any
.From arxiv API manual:
Wildcards:
- Use ? to replace a single character or * to replace any number of characters. Can be used in any field, but not in the first character position. See Journal References tips for exceptions.
Expressions:
- TeX expressions can be searched, enclosed in single $ characters.
Phrases:
- Enclose phrases in double quotes for exact matches in title, abstract, and comments.
Journal References:
- If a journal reference search contains a wildcard, matches will be made using wildcard matching as expected. For example, math* will match math, maths, mathematics.
- If a journal reference search does not contain a wildcard, only exact phrases entered will be matched. For example, math would match math or math and science but not maths or mathematics.
- All journal reference searches that do not contain a wildcard are literal searches: a search for Physica A will match all papers with journal references containing Physica A, but a search for Physica A, 245 (1997) 181 will only return the paper with journal reference Physica A, 245 (1997) 181.
Declaration
Swift
public func term(_ term: String, in field: ArxivQuery.Field = .any) -> ArxivQuery
-
Returns a query for retrieving the articles categorised under provided arXiv subject.
Declaration
Swift
public func subject(_ subject: ArxivSubject) -> ArxivQuery
Parameters
subject
An arXive subject. Possible values are defined under
ArxivSubjects
namespace. -
Returns a query for retrieving the articles whose first version was published in provided interval.
Declaration
Swift
public func submitted(in interval: DateInterval) -> ArxivQuery
Parameters
interval
Desired date interval.
-
Returns a query for retrieving the articles whose most recent version was published in provided interval.
Declaration
Swift
public func lastUpdated(in interval: DateInterval) -> ArxivQuery
Parameters
interval
Desired date interval.
-
Returns a query for retrieving the articles whose most recent version was published in provided interval.
Declaration
Swift
public func submitted(in period: PastPeriodFromNow) -> ArxivQuery
Parameters
interval
Desired date interval.
-
Returns a query for retrieving the articles whose most recent version was published in provided time period.
Declaration
Swift
public func lastUpdated(in period: PastPeriodFromNow) -> ArxivQuery
Parameters
period
Desired time period.
-
Returns a new query for retrieving the articles matching ALL of the provided subqueries.
Declaration
Swift
public func all(@ArxivQueryBuilder _ queries: () -> [ArxivQuery]) -> ArxivQuery
Parameters
queries
A query builder that creates list of subqueries of
all
. -
Returns a query for retrieving the articles matching ANY of the provided subqueries.
Declaration
Swift
public func any(@ArxivQueryBuilder _ queries: () -> [ArxivQuery]) -> ArxivQuery
Parameters
queries
A query builder that creates list of subqueries oaf
any
.