Package com.couchbase.lite
Class FullTextFunction
- java.lang.Object
-
- com.couchbase.lite.FullTextFunction
-
public final class FullTextFunction extends Object
Full-text function.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Expression
match(String indexName, String text)
Creates a full-text expression with the given full-text index name and search text.static Expression
rank(String indexName)
Creates a full-text rank function with the given full-text index name.
-
-
-
Method Detail
-
match
@NonNull public static Expression match(@NonNull String indexName, @NonNull String text)
Creates a full-text expression with the given full-text index name and search text.- Parameters:
indexName
- The full-text index name.text
- The search text- Returns:
- The full-text match expression
-
rank
@NonNull public static Expression rank(@NonNull String indexName)
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.- Parameters:
indexName
- The index name.- Returns:
- The full-text rank function.
-
-