GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Astro::ADS::Result(3) User Contributed Perl Documentation Astro::ADS::Result(3)

Astro::ADS::Result - A class for the results of a Search

version 1.90

    my $search = Astro::ADS::Search->new(...);
    my $result = $search->query();
    my @papers = $result->get_papers();
    my $next_q = $result->next();
    $result    = $ads->query( $next_q );

The Result class holds the response <https://ui.adsabs.harvard.edu/help/api/api-docs.html#get-/search/query> from an ADS search query. It will create attributes for all the fields specified in the "fl" parameter of the search OR it will hold the error returned by the UserAgent. If an error was returned, any calls to attribute methods will raise a polite warning that no fields will be available for that object.

By default, a successful search returns up to 10 rows of results. If more exist, the user iterates through them using the "next" method to generate a search query updated to start where the previous search left off.

This method gets a list of Astro::ADS::Papers from the last query executed.

Creates a new search query term hashref, suitable for fetching the next N papers from the ADS. If not given as an argument, the default is 10 rows. It returns "undef" if you have already reached the end of the available results.

This takes the values from the response header and updates the start position, collects the original query "q" and other params and returns the hashref, ready for the next "<$search-"query>>.

If given an argument, it takes that as the number of rows to fetch.

*Astro::ADS
*Astro::ADS::Search
*ADS API <https://ui.adsabs.harvard.edu/help/api/>
*Available fields for Results <https://ui.adsabs.harvard.edu/help/search/comprehensive-solr-term-list>

Boyd Duffee <duffee@cpan.org>

This software is Copyright (c) 2025 by Boyd Duffee.

This is free software, licensed under:

  The MIT (X11) License
2025-02-22 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.