You can configure other features for the search interface by specifying other match-related attributes to the SEARCH_INTERFACE element.
The following table lists the attributes (other than the CROSS_FIELD_BOUNDARY attribute) that you can specify with the SEARCH_INTERFACE element.
Attribute | Purpose |
---|---|
DEFAULT_RELRANK_STRATEGY | For record search, assigns a default relevance scoring function to a search interface. |
CROSS_FIELD_RELEVANCE_RANK | Specifies the relevance rank score for
cross-field matches. The value should be an unsigned 32-bit integer.
The default value for CROSS_FIELD_RELEVANCE_RANK is 0. |
STRICT_PHRASE_MATCH | Specifies that the Dgraph process should
interpret a query strictly when comparing white space in the query with
punctuation in the source text.
If set to FALSE, partial word tokens connected in the source text by punctuation can be matched to a phrase query where the partial tokens are separated by spaces instead of matching punctuation. The default value of this attribute is TRUE. |
You can also use the PARTIAL_MATCH element to specify if partial query matches should be supported for the SEARCH_INTERFACE that contains this element.