Manage suggestion indexing

ThoughtSpot dynamically indexes Search bar suggestions for column names and values.

When a user searches in the Search bar, ThoughtSpot supplies the user with suggestions for column names and their column values. The COLUMN NAME and any SYNONYMS appear in Search suggestions. For tables, a column’s INDEX TYPE controls whether and how ThoughtSpot suggests column values. For worksheets, the SUGGEST VALUES IN SEARCH section for a column determines whether ThoughtSpot suggests column values.

Additionally, ThoughtSpot uses a column’s INDEX PRIORITY value to determine where to rank a column’s name and values in the search suggestions. These values impact ThoughtSpot’s dynamically calculated usage based ranking (UBR).

To configure certain aspects of ThoughtSpot’s indexing behavior, refer to Managing search and SpotIQ settings.

Example of Search suggestion behavior

The following example illustrates how searching for promotion_last_name and then the letter t causes the system to suggest several ways of completing the t in the search:

Sample search suggestions

The system is suggesting the synonym type (callout A) for a column in the Promotion table. It is also suggesting a value of theil (callout B) for the Promotion_Last Name column. If you look in the Data  Tables page, you can see that there is a type synonym for the Promotion_Type column which is using default indexing.

Synonym for Promotion_Type

Managing search suggestions through INDEX TYPE and INDEX PRIORITY is important. Properly configured suggestions can decrease "noise" in the suggestion list. Increasing the visibility of important columns is helpful for new or intermittent ThoughtSpot users.

Understand the default indexing behavior for tables and Views

ThoughtSpot has a system default INDEX TYPE behavior for search suggestions for table and View values. This system default is configured on your cluster and applies to all tables. You can override this default behavior on a per-column basis.

Table and View search indexing

The system behavior when the INDEX TYPE is DEFAULT is as follows:

  • With two exceptions, the system indexes all columns using their COLUMN NAME value. The exceptions are columns with COLUMN TYPE of MEASURE and columns with DATA TYPE of DATE. ThoughtSpot does not index measure or date columns.

  • Columns that contain data values with large amount of free-form strings, that is, a length is greater than 50 words, are indexed as PREFIX_ONLY by default.

    If a column has a very large free text value, ThoughtSpot recommends you keep DEFAULT or set DONT_INDEX. Otherwise, you may generate confusing suggestions.
  • Short strings (like a firstname column) are indexed using PREFIX_AND_WORD_SUBSTRING by default, which indexes prefixes for each individual word in the column value.

  • If a column has a high cardinality - the number of unique column values - ThoughtSpot does not index it by default. If your data is in ThoughtSpot’s in-memory database, that limit is 10 million. If your data is in an external cloud data warehouse, that limit is 1 million. You can index columns with a greater cardinality than 10 million, but it may impact performance. To index a column with a cardinality greater than 10 million, contact ThoughtSpot Support.

If a column’s INDEX TYPE is not DEFAULT, ThoughtSpot does not index columns with a cardinality greater than 30 million if your data is in ThoughtSpot’s in-memory database, or 10 million if your data is in an external cloud data warehouse.

High cardinality and performance

A column’s cardinality can impact indexing. If you have a column with a very high cardinality and a very high number of rows, indexing these values can impact your ThoughtSpot performance. ThoughtSpot Support recommends you turn off indexing of primary key columns on extremely large tables (unlimited number of rows but < 1 million unique values) in your cluster.

High cardinality is relative to other considerations. In some cases, columns with fewer than 10 million rows but with columns containing long strings can cause performance problems with memory. If you have concerns or questions, your ThoughtSpot contact can help you determine appropriate cardinality thresholds for your ThoughtSpot installation.

Configure your own cluster defaults

If you need to, you can work with ThoughtSpot Support to configure new cluster defaults.

Additionally, you can configure certain aspects of ThoughtSpot’s indexing behavior from the Admin Console. Refer to Managing search and SpotIQ settings.

Understand the indexing behavior for worksheets

For worksheets, you can only choose whether or not to index the column. You cannot choose an index type. When viewing a worksheet, toggle the SUGGEST VALUES IN SEARCH option on or off.

When an administrator adds a formula to a worksheet, it appears as a selectable column in your search. To enable indexing for a worksheet formula, set the SUGGEST VALUES IN SEARCH option to 'yes'.
Worksheet search indexing

Override the system default on a column

You can change a column’s INDEX TYPE in the Data  Tables  Columns page or in the Index value in the modeling file.

The values you can set for INDEX TYPE are:

DEFAULT

The default behavior applies to all ATTRIBUTE columns that are not DATE types, PREFIX_AND_SUBSTRING for short values, PREFIX_ONLY for long values, and free-form text. ThoughtSpot does not index date or measure columns.

DONT_INDEX

Prevents indexing on the column values. The column doesn’t appear in search suggestions.

PREFIX_AND_SUBSTRING

Allows full indexing such that prefix and sub-string search both work for the column values.

PREFIX_AND_WORD_SUBSTRING

Allows indexing such that only prefix search works for each word of a multi-word string, for the column values.

PREFIX_ONLY

Allows indexing such that only prefix search works for the column values.

Consider a column with four values: ThoughtSpot, Thought, Spot and Thought Spot. If you search for sp, depending on the setting for indexing, the column value search result suggestions will vary:

DEFAULT

ThoughtSpot, Spot, and Thought Spot

DONT_INDEX

No suggestions.

PREFIX_AND_SUBSTRING

ThoughtSpot, Spot, and Thought Spot

PREFIX_ONLY

Spot

PREFIX_AND_WORD_SUBSTRING

Spot and Thought Spot

To change a value in the application UI:

  1. Open a worksheet or table from the Data page.

  2. Find the column whose index type you want to modify.

  3. Set its INDEX TYPE.

  4. Save your changes.

If you are using the model file, locate the Index cell, and enter the INDEX TYPE you want to use.

Change a column’s suggestion priority

A column’s INDEX PRIORITY determines the order or rank in which it and its values appear in the search dropdown.

Sample list of search suggestions

By default, the INDEX PRIORITY value is set to 1 for all columns. You can push a column up in the order (increase the rank) by increasing its INDEX PRIORITY value. A higher value (like 2) will cause the corresponding column and its values to appear higher up in the search dropdown than columns with lower value (like 1).

Set index priority for columns

You should only use numbers between 1-10 in the INDEX PRIORITY field. Use a value between 8-10 for important columns to improve their search ranking. Use 1-3 for low priority columns.

To change a value in the application UI:

  1. Open a worksheet or table from the Data page.

  2. Find the column whose index type you want to modify.

  3. Change the INDEX PRIORITY to a number between 1 and 10.

  4. Save your changes.

If you are using the model file, locate the Index cell, and enter the priority you want to use.



Was this page helpful?