|
NAMEAstro::ADS::Search - Queries the ADS Search endpoint and collects the results VERSIONversion 1.90 SYNOPSIS my $search = Astro::ADS::Search->new({
q => '...', # initial search query
fl => '...', # return list of attributes
});
my $result = $search->query();
my @papers = $result->papers();
while ( my $t = $result->next_query() ) {
$result = $search->query( $t );
push @papers, $result->get_papers();
}
while ( my $t = $result->next_query() ) {
push @papers, $result->more_papers( $t );
}
while ( push @papers, $result->next_query()->more_papers() ) {
}
DESCRIPTIONSearch for papers in the Harvard ADS You can put base terms in the creation of the object and use the query method to add new terms to that query only MethodsqueryAdding a field key "+q" to the query method adds the query term to the existing query terms, whereas specifying a value for "q" in the query method overwrites the query terms and neglects gathering other search attributes, such as authors or objects. add_authorsAdd a list of authors to a search query. Authors added here will not be deleted if the query attribute is updated. add_objectsAdd a list of objects to a search query. Objects added here will not be deleted if the query attribute is updated. query_treeNot implemented yet Will return the Abstract Syntax Tree <https://ui.adsabs.harvard.edu/help/api/api-docs.html#get-/search/qtree> for the query. bigqueryNot implemented yet Accepts a list of many IDs <https://ui.adsabs.harvard.edu/help/api/api-docs.html#post-/search/bigquery> and supports paging. NotesFrom the ADS API, the "=" sign turns off the synonym expansion feature available with the author and title fields See Also
AUTHORBoyd Duffee <duffee@cpan.org> COPYRIGHT AND LICENSEThis software is Copyright (c) 2025 by Boyd Duffee. This is free software, licensed under: The MIT (X11) License
|