Skip to main content

Search App Schema API

Define or update the field schema of your search app. Send your data model and QSC will sync the search configuration accordingly.

Interactive API Reference

Try the endpoint directly in your browser: Open API Explorer

Endpoint

PUT /api/v1/searchapp/schema/{tenant}/{code}
Path ParameterDescription
tenantYour tenant code (e.g. demo)
codeThe search app code (e.g. trendware)

Authentication

See API Authentication. Pass your static API token in the X-QSC-Token header:

X-QSC-Token: <your-token>

The token must have WRITE permission on the tenant.

Request

{
"fields": [
{
"code": "name",
"dataType": "string",
"searchMode": "balanced",
"weight": 3,
"display": true,
"facet": false,
"sort": false,
"suggest": false,
"navigation": false,
"semantic": false
},
{
"code": "brand",
"dataType": "string",
"searchMode": "balanced",
"weight": 2,
"display": true,
"facet": true,
"sort": false,
"suggest": false,
"navigation": false,
"semantic": false
},
{
"code": "description",
"dataType": "string",
"searchMode": "balanced",
"weight": 1,
"display": true,
"facet": false,
"sort": false,
"suggest": false,
"navigation": false,
"semantic": true
},
{
"code": "price",
"dataType": "double",
"searchMode": "off",
"display": true,
"facet": true,
"sort": true
}
]
}

Field Properties

PropertyTypeDefaultDescription
codestringField name — must match the key in your documents
dataTypestringData type — see Data Types
searchModestring"balanced"How this field is searched — see Search Modes
weightinteger1Relevance boost — higher means more relevant
displaybooleanfalseReturn this field in search results
facetbooleanfalseEnable filtering/faceting by this field
sortbooleanfalseEnable sorting by this field
suggestbooleanfalseInclude this field in search suggestions
navigationbooleanfalseUse this field for navigation
semanticbooleanfalseEnable semantic / vector search for this field

Data Types

ValueDescription
stringText with full-text analysis
longInteger number
doubleFloating point number
booleanBoolean (true/false)
dateISO 8601 date
categoriesHierarchical category tree
attributesKey/value attribute pairs
rawUnanalyzed raw value

Search Modes

ValueDescription
balancedStandard full-text search with balanced analysis (default for string fields)
fuzzyFuzzy/ngram search — tolerates typos and partial matches
exactExact phrase matching
customPreserves any manually configured search settings
offField is not searched

Non-string types (long, double, boolean, date) only support exact, custom, and off.

Response

Returns the updated schema.

{
"fields": [
{
"code": "name",
"dataType": "string",
"searchMode": "balanced",
"weight": 3,
"display": true,
"facet": false,
"sort": false,
"suggest": false,
"navigation": false,
"semantic": false
}
]
}

Status Codes

CodeDescription
200Schema updated successfully
400Invalid request body
401Missing or invalid token
403Token does not have WRITE permission
404Tenant or search app not found
500Internal server error

Next Step: Schedule a Feeding Job

warning

After updating the schema you must schedule a feeding job so QSC re-indexes your data with the new field configuration.

PUT /api/v1/job/{tenant}/{code}/feeding/_schedule
PUT /api/v1/job/demo/trendware/feeding/_schedule
X-QSC-Token: <your-token>
ResponseDescription
200Feeding job scheduled successfully
401Missing or invalid token
403Token does not have WRITE permission
404Tenant or search app not found