Class PrefixQuery
The prefix query finds documents containing terms that start with the provided prefix.
Assembly: Couchbase.NetClient.dll
Syntax
public class PrefixQuery : SearchQueryBase, ISearchQuery
Constructors
View Source
PrefixQuery(string)
Declaration
public PrefixQuery(string prefix)
Parameters
| Type |
Name |
Description |
| string |
prefix |
|
Methods
View Source
AsReadOnly()
Declaration
public PrefixQuery.ReadOnly AsReadOnly()
Returns
View Source
Deconstruct(out string, out string)
Declaration
public void Deconstruct(out string prefix, out string field)
Parameters
View Source
Export()
Gets a JSON object representing this query instance />
Declaration
[RequiresUnreferencedCode("Couchbase FTS might require types that cannot be statically analyzed. Make sure all required types are preserved.")]
[RequiresDynamicCode("Couchbase FTS might require types that cannot be statically analyzed and might need runtime code generation. Do not use for native AOT applications.")]
public override JObject Export()
Returns
Overrides
View Source
Field(string)
The field to search against.
Declaration
public PrefixQuery Field(string field)
Parameters
| Type |
Name |
Description |
| string |
field |
The field.
|
Returns
Implements
See Also