Skip to main content
PUT
/
query-rewrite
/
publish
/
{types}
Publish query rewrites by type
import requests

url = "https://{FUSION HOST}/api/query-rewrite/publish/{types}"

headers = {"Authorization": "Basic <encoded-value>"}

response = requests.put(url, headers=headers)

print(response.text)
"<string>"

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

types
enum<string>[]
required

A comma-separated list of query rewrite types. Use /query-rewrite/schema to check the available query rewrite types.

Available options:
bury_list,
simq,
boost_attributes,
filter_list,
json_blob,
block_list,
ingroup_bury_list,
boost_list,
redirect,
response_value,
banner,
removeWords,
ingroup_pinned,
set_params,
ground_truth,
spell,
phrase,
tail,
synonym,
set_facets,
pinned,
ingroup_boost_list

Query Parameters

context
string
required

The app to which this object belongs, as app:SomeApp. If the app doesn't exist, the request fails. Other comma-separated contexts in the context parameter are allowed but ignored.

editSessionId
string

The edit session ID associated with this request. Equivalent to a Fusion username.

noOptimizeWithin
integer<int64>

The number of seconds to wait after a publish before optimizing the query rewrite collection.

Response

200 - application/octet-stream

OK

The response is of type string.