Results > Customize Results > Change the Results Display > Change Result Sorting (Display Order)

Change Result Sorting (Display Order)
By default, IDOL server lists query results in order of relevance. To weight and rank the document it returns by statistical relevance, IDOL server uses complex algorithms that use a combination of Information Theory and Bayesian methods. It makes use of information theoretic values calculated dynamically for all concepts on indexing, which allows it to evaluate relevance both as a percentage, and in the case of agents, as absolute values.
In practice, the relevance acts as a measure of the conceptual overlap between the query text and the text within a document. You can affect the relevance in several ways. You can apply extra weight to certain fields by associating a weighting factor with them at indexing time. For example, you can give extra weight when query terms appear in the document title as opposed to the body of the text.
You can change the order in which IDOL server returns query results by adding the Sort parameter to your Query, Suggest, SuggestOnText, GetTagValues or GetQueryTagValues action.
Sorting for Query, Suggest, and SuggestOnText
For the Query, Suggest and SuggestOnText actions, the following Sort options are available:
 
Displays results in order of the value in their AutnRankType field. It lists the document with the highest AutnRankType field value first.
If you specify Cluster as one of multiple sorting options, it automatically takes precedence over the other sorting methods, even if you did not put it in first place.
Displays results in order of database number (in increasing order). Define the database numbers in the IDOL server configuration file.
Displays results in order of their date (the date contained in the results' DateType fields). It lists the most recent document first.
If several documents have the same date, their display order is determined by their autn:docid (document ID) number (the highest autn:docid is listed first).
Displays results according to their distance from a specified point using Cartesian coordinates (X/Y). The option has this format:
sort=Distcartesian{coordX,coordY}:X:Y
*
coordX. is the specified x coordinate.
*
coordY. is the specified y coordinate.
*
X. is the document field containing the X coordinate.
*
Y. is the document field containing the Y coordinate.
Displays results according to their distance from a specified point using spherical coordinates (latitude/longitude). The option has this format:
sort=Distspherical{lat,long}:Latfield:Longfield
*
lat is the specified latitude. Specify latitude positions south of the equator as negative.
*
long is the specified longitude. Specify longitude positions west of the Greenwich Meridian as negative.
*
Latfield is the document field containing the latitude.
*
Longfield is the document field containing the longitude.
Displays results in order of their autn:docid (document ID) number. It lists the document with the highest autn:docid first.
Displays results in order of their autn:docid (document ID) number. It lists the document with the lowest autn:docid first.
fieldName:sortMethod
Displays results in the order specified by sortMethod, based on the value of the IDOL server field fieldName. The following sort methods are available:
*
alphabetical. Determines the display order of results by the string contained in fieldName. Displays results in alphabetical order. (Sorting is faster if fieldName is SortType.)
*
decreasing. Determines the display order of results by the number or string contained in fieldName. It lists the result with the highest number or last in alphabetical order first. For NumericType fields, this method is equivalent to numberdecreasing. For SortType fields, this method is equivalent to reversealphabetical.
*
increasing. Determines the display order of results by the number or string contained in fieldName. It lists the result with the lowest number or first in alphabetical order first. For NumericType fields, this method is equivalent to numberincreasing. For SortType fields, this method is equivalent to alphabetical.
*
numberdecreasing. Determines the display order of results by the number contained in fieldName. It lists the result with the highest number first. (Sorting is faster if fieldName is NumericType.)
*
numberincreasing. Determines the display order of results by the number contained in fieldName. It lists the result with the lowest number first. (Sorting is faster if fieldName is NumericType.)
*
reversealphabetical. Determines the display order of results by the string contained in fieldName. Displays results in reverse alphabetical order. (Sorting is faster if fieldName is SortType.)
If documents have the same relevance, it determines their display order by their autn:docid (document ID) number (it lists the highest autn:docid first).
Displays results in order of their date (the date contained in the results' DateType fields). It lists the oldest document first.
If several documents have the same date, it determines their display order by their autn:docid (document ID) number (it lists the highest autn:docid first).
If you want to sort results using several criteria, you can specify them as follows:
sortOption1+sortOption2+...
Example 1:
http://MyHost:20000/action=Query&Text=presidential elections&Sort=Date
In this example, IDOL server displays results in order of the document date.
Example2:
http://MyHost:20000/action=Query&Text=presidential elections&Sort=DRETITLE:reversealphabetical
In this example, IDOL server displays results in reverse alphabetical order by their DRETITLE.
Example 3:
http://MyHost:20000/action=Query&Text=presidential elections&Sort=Relevance+DRETITLE:alphabetical+Date
In this example, results order by Relevance, then by their DRETITLE, and then by their Date.
Sort for GetTagValues and GetQueryTagValues
For the GetTagValues and GetQueryTagValues actions, these Sort options are available:
 
Determines the display order of results by the string contained in the IDOL server field. Displays results in alphabetical order.
Determines the display order of results by the number contained in the IDOL server field. It lists the result with the highest number first.
Determines the display order of results by the number contained in the IDOL server field. It lists the result with the lowest number first.
Determines the display order of results by the string contained in the IDOL server field. It displays results in reverse alphabetical order.
Sort for GetQueryTagValues
For the GetQueryTagValues action, these Sort options are available:
 
If you set the DocumentCount action parameter to true, you can use this option to display results in order of their document count (in decreasing order).
If you set the DocumentCount action parameter to true, you can use this option to display results in the reverse order of their document count (in increasing order).
For example:
http://MyHost:20000/action=GetQueryTagValues&FieldName=GRAPE,COUNTRY &Text=A smooth red wine that complements game&Sort=Alphabetical
In this example, IDOL server displays results in alphabetical order.