Phrase Query Rewrite API ConfigurationsFusion Query Rewrite APIs
This query rewrite configuration is used in the Query Rewrite API.
For a complete list of rule and rewrite types in the Query Rewrite API, see Query Rewrite API Configurations.
For more information, view the API specification.
Phrase
Phrase detection identifies phrases in your signals so that results with matching phrases can be boosted. This helps compensate for queries where phrases are not distinguished with quotation marks. For example, the query ipad case
is rewritten as “ipad case”~10^2
, meaning if ipad
and case
appear within 10 terms (whitespace-delimited tokens) of each other, then boost the result by a factor of 2.
Phrases are applied in the Text Tagger stage of the query pipeline.
General information
-
Endpoint:
https://FUSION_HOST:FUSION_PORT/api/apps/APP_NAME/query-rewrite/schema/RULE_TYPE
-
Required parameter is: type
-
The values for the
hints
parameter include:-
hidden
: Do not display in the Fusion UI, but can be read and written in the schema. -
readonly
: Cannot be set by the user. If attempted, an error is generated and the operation fails.
-
Parameter | Schema |
---|---|
type |
|
type |
string |
properties |
|
confidence |
|
id |
|
source |
|
sourceType |
|
createdOn |
|
updatedOn |
|
reviewer |
|
reviewedOn |
|
review |
|
deployed |
|
tags |
|
surface_form |
|
phrase_count |
|
word_count |
|
boost |
|
slop |
|
type Required |
|
doc_type |
|
additionalProperties |
|
additionalProperties |
|