TengenceTengence
Product docs

Index Concepts and Configuration Guide

Six things decide whether an index works: where data comes from, how fields are defined, which semantic type each field carries, which dataset field an index f…

Six things decide whether an index works: where data comes from, how fields are defined, which semantic type each field carries, which dataset field an index field binds, which processing type applies, and whether a weight is needed. Each section covers what one of them means, what the options are, and what to do in the console; the last sections cover the actual steps and the usual mistakes.

From data to search: three layers

A search request passes through three layers. Each has one job, and mixing them up is the most common source of misconfiguration.

Layer What it defines What it does
Dataset Where data comes from, what fields are called, what type each has Stores or connects data and parses fields by definition
Index Which fields are searchable, how each is processed, which matters more Turns fields into a searchable structure; processing types and weights live here
Application Which index is exposed, which search strategy applies Exposes the search API, ranking strategy and override rules

A field’s name lives in the dataset layer; its behaviour lives in the index layer. The same column can be goods_name in the dataset and, in the index, a title-semantics tokenized field with weight 8. Those are two layers, so do not look for processing types in the dataset.

Datasets and dataset fields

A dataset field is an actual column in the dataset. It decides how data is read in and how it is parsed, and it has two hard constraints:

Naming: it must start with a letter and contain only letters, digits and underscores. goods-name, 2nd_price and non-ASCII names are rejected on save.

Data type: it decides which processing types become available later. Choose the wrong type and the index step will find the field unprocessable.

Data type Meaning Available processing types
String Text Normal Text, Tokenized Text, Keyword, Date/Time
Number Numeric Numeric, Keyword, Date/Time
Boolean Boolean Numeric
Date / Timestamp Date or timestamp Date/Time
Array Array Array
Other or unknown Object, binary, null and so on Default

Two dataset fields are special: the ID field, the unique key for deduplication and write-back, and the last-updated field, the watermark for incremental sync. Neither is optional — confirm both exist and are reliable before onboarding.

Semantic types

A semantic type is the platform’s notion of what a field means in business terms. It is not your column name but a built-in code such as TITLE, PRICE or PUBLISH_TIME. Once a dataset column is tagged TITLE, the platform knows it can be recalled as a title, highlighted, and mined for query terms.

Field name and semantic type are separate: the name is yours (goods_name), the semantic type is the system’s (TITLE). A different name for the same meaning needs no new type — just map it.

Semantic types live in industry groups: GENERAL, E_COMMERCE, CONTENT_COMMUNITY and so on. Groups are drawers for picking, and one code can sit in several while staying a single code underneath. Seeing TITLE in both general and commerce is not duplication.

When creating types: reuse before creating, and skip narrow fields that only hold for one project — keep them as plain index fields. The more fragmented the types, the harder cross-project reuse becomes.

Reuse first: use an existing type when one fits, and keep single-project narrow fields as plain index fields.

Index fields

An index field is a field as search sees it: it has its own name, a bound dataset field, a processing type and a weight. One index field binds exactly one dataset field — no many-to-one, no concatenating columns.

Why the split: the dataset cares what is stored, the index cares how it is searched. The same data can back two indexes, one lightweight with title and category only, one full-text with body. Same structure, different search views.

Index field names must be unique within one index. Renaming is equivalent to replacing the field, and existing data only reflects the new name after a rebuild.

Processing types: seven, and no inventions

A processing type decides how the platform parses a field. There are exactly seven in the console — no eighth, and no made-up combinations.

Name Code Data types Weightable When to use Typical fields
Normal Text NORMAL_TEXT String No Stored as-is, matched as a whole, never tokenized URLs, image addresses, raw JSON, attachment paths
Tokenized Text ANALYZED_TEXT String Yes Tokenized into an inverted index for term recall and highlighting; the only weightable type Title, subtitle, summary, body, keywords, author, category name
Keyword KEYWORD String, Number No Treated as one exact term, never tokenized IDs, codes, status, language, enums, currency
Numeric NUMERIC Number, Boolean No Numeric comparison, range filtering and sorting; booleans as 0/1 Price, stock, sales, rating, counts, boolean flags
Date/Time DATETIME Date, Timestamp, Number, String No Time comparison, range filtering and recency sorting Publish, update, create and expiry times
Array ARRAY Array No The whole array as a multi-value field, filtered by element Tags, image lists, attribute arrays, multi-value colour or size
Default DEFAULT None (missing or unknown type) No No special parsing, field kept as is Temporary fields, objects with unsettled structure

Pick in three steps: what the field has to do (recall, filter or display), then the typical fields in the table above, then whether the data type supports that processing type. If any step fails, stop rather than choosing the nearest-looking option.

The two commonest mistakes: URLs and image addresses must not be tokenized, since tokenizing makes them unsearchable and bloats the index; IDs, status and enums must never be tokenized — exact match is the point, and tokenizing breaks filtering and write-back targeting.

Array fields can only take Array. If your tags are a comma-joined String in the dataset, use Tokenized Text instead of forcing a fake “Array” string field.

Field weights

A field weight is the relative importance of a field within the same query, so a title hit counts more than a body hit. Only Tokenized Text is weightable; the other six types never show a weight box.

The range is 0–10 with two decimals. When unset, the platform applies the default for that semantic type, which is also the usual starting point under industry templates:

Bigger is not better. Set body to 8 and an incidental word in a long article outranks a title hit. Run with defaults first, read the query logs to see which fields should matter more, then adjust in small steps.

Semantic type Default weight
TITLE 8.0
KEYWORDS 6.0
SUBTITLE 5.0
CATEGORY_NAME 5.0
TAG_NAME / TAGS 5.0
AUTHOR 2.0
DESCRIPTION 2.0
DETAIL 0.5
All other semantic types No weight

Why ID is always required

Required fields come from the industry template, fixed when the dataset is created and not editable in the console. That is not a limitation but a guarantee: whoever onboards, a minimum structure runs. ID is always one of them, for four reasons.

Deduplication: a repeated push overwrites by ID instead of adding a duplicate result.

Override write-back: pinning, repricing and delisting all target a record by ID, and nothing can be targeted without it.

Incremental update: changes replace the old record by ID instead of triggering a full rebuild.

Click attribution: click and impression logs align with results through ID, which is what makes evaluation and weight tuning possible.

The ID semantic type disables dataset-field selection in the index page, because it binds the dataset-level key rather than an ordinary column and neither needs nor allows reassignment.

Configure the index: seven steps

  1. The entry point is Application → Index Configuration in the console. Seven steps, in order; skipping one costs a rebuild:
  2. Confirm the dataset exists, the ID and last-updated fields are present, and no required field is empty.
  3. Bind index fields to dataset fields in the index configuration, one to one.
  4. Choose a semantic type for each index field. Only one field can be TITLE; if several look like titles, decide which is the primary one.
  5. Choose a processing type. Required fields are fixed by the template; choose the rest from the seven in the previous section.
  6. Set weights on tokenized fields, starting from the defaults.
  7. Save and build the index; with large volumes, push 1,000 records and run a trial first.
  8. Run a query to verify recall, highlighting, filtering and sorting, then push the full dataset.

Eight common misconfigurations

What happened Impact Fix
Tokenizing a URL or image address The original value is unsearchable and the index bloats Use Normal Text and rebuild
ID set to Normal Text or Tokenized Text Dedupe, overrides and incremental sync all break Use Keyword
Status, language or enums tokenized Filtering misses and aggregation splits Use Keyword
A date stored as String but set to Numeric Time comparison and sorting stop working Use Date/Time, which accepts String
An array field set to Numeric or Tokenized Text Save fails or only the first element is read Type the dataset field as Array and use Array processing
A weight set on a non-tokenized field The weight silently does nothing Only weight tokenized fields
One index field bound to two dataset fields The later binding overwrites the earlier one Bind exactly one dataset field per index field
Renaming a field without rebuilding Queries still use the old name and return nothing Rebuild after renaming

FAQ

Can a required field change its processing type?

No. Required fields come from the template and the processing type is read-only. If you need different behaviour, the semantic type is probably wrong — express it with a non-required field.

What if I picked the wrong semantic type?

Fix the mapping and rebuild. Data need not be re-pushed; the index re-parses under the new semantics.

Can one dataset back two indexes?

Yes. An index is a search view, so one dataset can feed a full-text index and a lightweight title-and-category index for different scenarios.

Does changing a weight require a rebuild?

Yes. Weights are part of the index structure, so the change takes effect only after a rebuild.

Do I need a separate copy of a type per industry?

No. One code can appear in several industry groups while existing once; datasets reference the code.

Why is a processing type unavailable for my field?

Check the dataset field data type. Unsupported types cannot be selected — Boolean only takes Numeric, Array only takes Array.

Next step

Pick the field table by industry: any industry can go live with the general set of 8 required fields, and commerce or content businesses add the fields their tables list. The processing types there are the seven described above, and every semantic type comes from existing console tags.

Field references:

On this page