Class FullTextFunction
A class that generates functions for use on the results of a full-text search
Inheritance
Inherited Members
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class FullTextFunction
Methods
| Improve this Doc View SourceMatch(IIndexExpression, 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(IIndexExpression index, string query)
Parameters
Type | Name | Description |
---|---|---|
IIndexExpression | index | 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 |
Match(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
[Obsolete("Use Match(index, query) instead")]
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(IIndexExpression)
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(IIndexExpression index)
Parameters
Type | Name | Description |
---|---|---|
IIndexExpression | index | The FTS index to use when performing the calculation |
Returns
Type | Description |
---|---|
IExpression | A function that will perform the ranking |
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
[Obsolete("Use Rank(index) instead")]
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 |