CBLQueryFullTextFunction

@interface CBLQueryFullTextFunction : NSObject

Full-text function.

  • Creates a full-text rank function with the given full-text index name. The rank function indicates how well the current query result matches the full-text query when performing the match comparison.

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)rank:(nonnull NSString *)indexName;

    Parameters

    indexName

    The full-text index name.

    Return Value

    The full-text rank function.

  • Creates a full-text match expression with the given full-text index name and the query text

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)matchWithIndexName:(nonnull NSString *)indexName
                                                 query:(nonnull NSString *)query;

    Parameters

    indexName

    The full-text index name.

    query

    The query string.

    Return Value

    The full-text match expression.

  • Creates a full-text rank() function with the given full-text index expression.

    The rank function indicates how well the current query result matches the full-text query when performing the match comparison.

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)rankWithIndex:
        (nonnull id<CBLQueryIndexExpressionProtocol>)index;

    Return Value

    The full-text rank function.

  • Creates a full-text match() function with the given full-text index expression and the query text

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)
        matchWithIndex:(nonnull id<CBLQueryIndexExpressionProtocol>)index
                 query:(nonnull NSString *)query;

    Return Value

    The full-text match() function expression.

  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;