Can be used to specify how to break ties between two records that have identical textual similarity.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Sub addCustomTiebreak( _ 
   ByVal tiebreakId As Integer,  _ 
   ByVal tiebreakParam As Integer _ 
)
C#
public void addCustomTiebreak(
   int tiebreakId,
   int tiebreakParam
)
C++
public:
 void addCustomTiebreak(
   int tiebreakId,
   int tiebreakParam
) sealed 
J#
public void addCustomTiebreak(
   int tiebreakId,
   int tiebreakParam
)
JScript
public  function addCustomTiebreak(
   tiebreakId : int,
   tiebreakParam : int
)

Parameters

tiebreakId
One of the Ids specified in the table above.
tiebreakParam
An int parameter which is explained in the table above.

Remarks

Each tiebreaking option has integer identifier and a possible integer parameter (most ignore the parameter). The tiebreaks are given in the table below.

NetricsSearchOpts.tiebreak_types.TIEBREAK_RECLENDeprecated. This is identical to TIEBREAK_SCORETYPE on symmetric score.ignored
NetricsSearchOpts.tiebreak_types.TIEBREAK_RECIDBy record key - this can be used to guarantee a stable sort of tied recordsignored
NetricsSearchOpts.tiebreak_types.TIEBREAK_ALIGNMENTBy querylet alignment - records which the query matches closer to the beginning will come first. This applies only to cognate or simple queries.ignored
NetricsSearchOpts.tiebreak_types.TIEBREAK_SCORETYPEBy scoretype - you can tiebreak by a different scoretype than you're sorting onThe scoretype - described in NetricsSearchOpts.sortScore
NetricsSearchOpts.tiebreak_types.TIEBREAK_FIELDVALBy field value - strings will be sorted from high to low and numeric values from low to highThe integer value of the field number to use (zero based)

Any number of tiebreaks may be added. The first tiebreak added will be the primary sort, the second will be the secondary sort, and so on (e.g. if the records are still tied after the first tiebreak, the second will then be used).

See Also