Set TotalResults
to true
to return the following additional response fields for the query:
<autn:totalhits>
|
|
<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 Server 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: | |
Type: | Boolean |
Default: | False |
Example: | http://localhost:9000/action=Query&Text=nebula&TotalResults=True The output is as follows ( <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: |
|