POST
/
query-profiles
Create a query profile
curl --request POST \
  --url https://{FUSION HOST}/api/query-profiles \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "queryPipeline": "<string>",
  "collection": "<string>",
  "searchHandler": "<string>",
  "searchMode": "<string>",
  "params": [
    {
      "key": "<string>",
      "value": "<string>",
      "policy": "replace"
    }
  ],
  "experiment": {
    "id": "<string>",
    "percentOfTraffic": 123
  }
}'
{
  "id": "<string>",
  "queryPipeline": "<string>",
  "collection": "<string>",
  "searchHandler": "<string>",
  "searchMode": "<string>",
  "params": [
    {
      "key": "<string>",
      "value": "<string>",
      "policy": "replace"
    }
  ],
  "experiment": {
    "id": "<string>",
    "percentOfTraffic": 123
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

context
string

The app to which this object belongs, as app:SomeApp.

Body

application/json
id
string

The query profile ID.

queryPipeline
string

The query pipeline associated with this query profile.

collection
string

The data collection associated with this query profile.

searchHandler
string

The Solr search handler to use with this query profile.

searchMode
string

The search mode to use with this query profile:

  • dsl - Fusion's Domain Specific Language.

  • legacy - Solr query parameters.

  • all - Use both DSL and legacy search modes. This is the default value that works well for most use cases.

params
object[]
experiment
object

Response

200 - application/json

OK

id
string

The query profile ID.

queryPipeline
string

The query pipeline associated with this query profile.

collection
string

The data collection associated with this query profile.

searchHandler
string

The Solr search handler to use with this query profile.

searchMode
string

The search mode to use with this query profile:

  • dsl - Fusion's Domain Specific Language.

  • legacy - Solr query parameters.

  • all - Use both DSL and legacy search modes. This is the default value that works well for most use cases.

params
object[]
experiment
object