Astro-ADS
view release on metacpan or search on metacpan
lib/Astro/ADS/Search.pm view on Meta::CPAN
my ($self, @objects) = @_;
push @{$self->objects}, @objects;
}
1;
=pod
=encoding UTF-8
=head1 NAME
Astro::ADS::Search - Queries the ADS Search endpoint and collects the results
=head1 VERSION
version 1.92
=head1 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() ) {
}
=head1 DESCRIPTION
Search 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
=head1 Methods
=head2 query
Adding a field key C<+q> to the query method B<adds> the query
term to the existing query terms,
whereas specifying a value for C<q> in the query method
overwrites the query terms and neglects gathering other search attributes,
such as authors or objects.
=head2 add_authors
Add a list of authors to a search query. Authors added here will not be
deleted if the query attribute is updated.
=head2 add_objects
Add a list of objects to a search query. Objects added here will not be
deleted if the query attribute is updated.
=head2 query_tree
Will return the L<Abstract Syntax Tree|https://ui.adsabs.harvard.edu/help/api/api-docs.html#get-/search/qtree> for the query.
=head2 bigquery
Accepts a L<list of many IDs|https://ui.adsabs.harvard.edu/help/api/api-docs.html#post-/search/bigquery> and supports paging.
=head2 Notes
From the ADS API, the "=" sign turns off the synonym expansion feature
available with the author and title fields
=head1 See Also
=over 4
=item * L<Astro::ADS>
=item * L<Astro::ADS::Result>
=item * L<ADS API|https://ui.adsabs.harvard.edu/help/api/>
=item * L<Search Syntax|https://ui.adsabs.harvard.edu/help/search/search-syntax>
=back
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2025 by Boyd Duffee.
This is free software, licensed under:
The MIT (X11) License
=cut
( run in 0.679 second using v1.01-cache-2.11-cpan-d8267643d1d )