TengenceTengence
Product docs

Search Setup: App, Dataset, Index, First Query

Create a Search app, bind a dataset, configure the index and ranking, and verify the first query.

This guide takes a Search application from an empty account to a working query. It assumes the dataset already exists. If it does not, read Data Integration overview first: datasets are produced by integration applications, not created in Data Center.

What you are building. A Search application binds one dataset, defines an index over that dataset, applies a ranking formula and exposes a query API. Four objects are involved: App ID, Dataset ID, index configuration and query. The first three are setup; the fourth is verification.

Search application details showing package usage, monthly calls, document count, API key and integration entries.
Search app details with package usage, document count, API key and integration entries.

Step 1 — create the application. In Tengence Search → Apps, choose + New App. Give it a name that identifies the catalogue, select the industry, and choose the dataset. After creation the app receives an App ID and starts in Free with a Running status. Open Details.

Step 2 — verify the binding. The header shows the App ID, Industry Type and Dataset ID. Confirm that the Dataset ID matches the catalogue you intend to search. The Package Usage card shows storage, monthly calls and document count. A document count of 0 after the first sync usually means the dataset is empty or the index has not run.

Step 3 — define the index. Open Index Configuration. Each row maps a dataset field to an index field, a field type and a weight. A working product index needs at least a unique identifier, a title and one or more filterable fields.

Index field Dataset field Type Weight Why
item_id product_id Keyword — Stable unique identifier; required for updates and deletes
title title Tokenized Text 4 Primary recall and relevance field
category_name category Tokenized Text 2 Category recall and facet display
description description Tokenized Text 2 Long-text recall
price price Numeric — Range filters and price-aware ranking
rating rating Numeric — Quality signal and sorting
Search index configuration mapping item_id, title, category_name, description, price and rating to dataset fields.
Index configuration for the Aurora Living catalogue: six fields, title weight 4, category and description weight 2.

Use Keyword for exact-match identifiers and facets. Use Tokenized Text for natural-language fields that need word-level matching. Use Numeric for prices, ratings and timestamps so range filters work. Avoid indexing every field: each field adds storage and query cost.

Step 4 — set the ranking. Open Ranking. The pre-rank formula runs before the heavier ranking stage and should use cheap signals. A common starting formula is 0.6 * @relevance + 0.3 * @quality + 0.1 / @recall_position. Use Validate before Save. Keep the first version simple and change one weight at a time.

The ranking page with the pre-rank formula 0.6 * @relevance + 0.3 * @quality + 0.1 / @recall_position and ranking factors.
The pre-rank formula and the ranking factor reference.

Step 5 — run the first query. Return to the app and open Preview. Enter a query that exists in the catalogue, for example a product category or a brand. Confirm that the expected item appears and that the title and price are correct. If the query returns nothing, check the index status and dataset records before changing the ranking.

Step 6 — connect the application. The app page exposes the API Key and four entries: Preview, API Integration, Page Component Integration and API Debug. Use API Debug to send a test request before wiring the production front end. Integration steps and runnable examples are in Search API Integration and Examples; the full contract is in Search API reference.

Setup checklist

  • App ID exists and the app is Running.
  • Dataset ID matches the intended catalogue.
  • Document count is greater than 0.
  • The index has a unique identifier and a title field.
  • The ranking formula validates and saves.
  • Preview returns an expected item.
  • API Debug returns a response with the same API key.

Next steps

On this page