Class FullTextFunction
A class that generates functions for use on the results of a full-text search
Inheritance
System.Object
FullTextFunction
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class FullTextFunction : object
Methods
| Improve this Doc View SourceMatch(String, String)
Create a full-text matching function that will check for matches between given full text index name and the given query expression
Declaration
public static IExpression Match(string indexName, string query)
Parameters
Type | Name | Description |
---|---|---|
System.String | indexName | The name of the full-text index to perform the check against |
System.String | query | The query expression to perform the check against |
Returns
Type | Description |
---|---|
IExpression | A function that will perform the matching |
Rank(String)
Creates a full-text ranking value function indicating how well the current query result matches the full-text query when performing the match comparison.
Declaration
public static IExpression Rank(string indexName)
Parameters
Type | Name | Description |
---|---|---|
System.String | indexName | The FTS index name to use when performing the calculation |
Returns
Type | Description |
---|---|
IExpression | A function that will perform the ranking |