TotalResults

Set TotalResults to True to return the following additional response fields for the query:

<autn:totalhits>
  • The total number of results.
  • <autn:totaldbdocs> The total number of documents there are in the databases for your query. If you limit your search to a specific database, it displays the number of documents in that particular database.
    <autn:totaldbsecs>

    The total number of document sections there are in the databases for the query. If you limit your search to a specific database, it displays the number of document sections in that particular database.

    <autn:databasehits> The number of hits found in each database. IDOL Content Component returns this field only if you set Predict to False.

    NOTE: You can disable this by setting TotalResultsPrintDatabases to False in the [Server] section of the configuration file.

    Actions:

    Query
    Suggest
    SuggestOnText

    Type: Boolean
    Default: False
    Example: http://localhost:9100/action=Query&Text=nebula&TotalResults=True

    The output is as follows (TotalResults output is highlighted in bold):

    <autnresponse>
    <action>QUERY</action>
    <response>SUCCESS</response>
    <responsedata>
    <autn:numhits>2</autn:numhits>
    <autn:totalhits>2</autn:totalhits>
    <autn:totaldbdocs>1102</autn:totaldbdocs>
    <autn:totaldbsecs>1501</autn:totaldbsecs>
    <autn:hit>
    <autn:reference>http://antwrp.gsfc.nasa.gov/apod/ap040207.html</autn:reference>
    <autn:id>1163</autn:id>
    <autn:section>0</autn:section>
    <autn:weight>96.69</autn:weight>
    <autn:links>NEBULA</autn:links>
    <autn:database>Science</autn:database>
    <autn:title> APOD: 2004 February 7 - NGC 6369: The Little Ghost Nebula </autn:title>
    </autn:hit>
    <autn:hit>
    <autn:reference>http://antwrp.gsfc.nasa.gov/apod/ap041104.html</autn:reference>
    <autn:id>895</autn:id>
    <autn:section>0</autn:section>
    <autn:weight>93.53</autn:weight>
    <autn:links>NEBULA</autn:links>
    <autn:database>Science</autn:database>
    <autn:title>APOD: 2004 November 4 - NGC 7023: The Iris Nebula</autn:title>
    </autn:hit>
    </responsedata>
    </autnresponse>
    See Also: MaxResults
    Predict
    TotalResultsPrintDatabases