Click or drag to resize

Function Class

Provides functions for use within the fluent query API. These methods are intended to be used with the methods provided by the IFulltextQueryTDocument interface.
Inheritance Hierarchy
SystemObject
  SphinxConnector.FluentApiFunction

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.0.0
Syntax
public static class Function

The Function type exposes the following members.

Methods
 NameDescription
Public methodStatic memberBitdotT Returns the sum of products of each bit of a mask multiplied with its weight.
Public methodStatic memberCrc32 Calculates the CRC32 value for a string.
Public methodStatic memberExistT Returns the value of the attribute if it exists in the index(es), otherwise returns the provided default value.
Public methodStatic memberFibonacci Calculates the n-th Fibonacci number.
Public methodStatic memberCode exampleGeodist(Single, Single, Single, Single) Calculates the geosphere distance between the two points given by their coordinates. The coordinates must be provided in radians.
Public methodStatic memberGeodist(Single, Single, Single, Single, GeodistanceOptions) Calculates the geosphere distance between the two points given by their coordinates.
Public methodStatic memberGroupByT Returns the value by which a grouping was made.
Public methodStatic memberIdiv Returns the result of an integer division of the first argument by the second argument.
Public methodStatic memberMinTopSortValue Returns the sort key value of the worst found element in the current top-N matches if sort key is float and 0 otherwise.
Public methodStatic memberMinTopWeight Returns the weight of the worst found element in the current top-N matches.
Public methodStatic memberPackedFactors Can be used in queries to see all the weighting factors calculated when doing the matching. This function works only if expression ranker is specified and the query is not a full scan, otherwise it will return an error.
Public methodStatic memberRand Returns a random value.
Public methodStatic memberSint(ExpressionFuncInt64) Force Sphinx to reinterpret the given 32-bit unsigned integer argument as signed, and to also expand it to 64-bit type.
Public methodStatic memberSint(Int64) Force Sphinx to reinterpret the given 32-bit unsigned integer argument as signed, and to also expand it to 64-bit type.
Public methodStatic memberZonespanList Returns pairs of matched zone spans.
Top
Remarks
These methods must not be used outside the fluent API, as they are only implemented as stubs.
See Also