Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Change the query mode of an indexed table

Set the query mode to specify whether searches on an indexed table must match all or only some of the search terms.

Before you begin

To change the query mode of an indexed table, a text index must be present for the table. Make sure that text indexing is enabled for the table before changing the query mode. See Configure a table for indexing and searching.

Role required: ts_admin or admin

About this task

Once a table is indexed, the data within the table can be searched through the global search bar. Change the query mode for the indexed table to allow global search to match all or only some of the searched terms. Enable a partial match rule to return results that partially match the searched terms.

Procedure

  1. Navigate to All > System Definition > Text Indexes.

  2. Select the table you want to configure from the list of indexed tables.

  3. Use the combo box to select a Default query mode.

DefaultThe default query mode for a table is an AND query.
ANDMatches all search terms.
ORMatches one or more search terms.
AND_ORMatches all search terms. If no results are found, matches one or more search terms.
  1. To enable partial matching of search terms, configure the partial match rule in the Partial Match Rule field.

    Partial match rules return results that partially match the search terms. Use a partial match rule if queries often include many keywords (if, for example, users cut and paste phrases into the global search bar).

Input typeExampleDescription
Integer3Indicates the minimum number of search terms to be matched.
Negative integer-2Indicates that the number of search terms, minus this number, should be matched.
Percentage75%Indicates the minimum percentage of search terms to be matched. The minimum number of search terms is the number computed from the percentage rounded down.
Negative percentage-25%Indicates that the number of search terms, minus this percentage, should be matched. The minimum number of search terms is the number computed from the percentage rounded down and subtracted from the total number of search terms.
Combination3<70%A positive integer, followed by a less than symbol, followed by any of the previously mentioned input types. Indicates that if the number of search terms is equal to or less than the integer, all search terms are required. If the number of search terms is greater than the integer, the specification applies. In this example: if there are 1–3 search terms, all are required. If there are 4 or more search terms, only 70% are required.
Multiple combinations3<-25%, 9<-5Multiple conditional specifications separated by commas. In this example: if there are 1–3 search terms, all are required. If there are 4–9 search terms, all but 25% are required. If there are more than 9 search terms, all but 5 are required.

Parent Topic:Zing indexes words

Related topics

Zing indexes punctuation as part of some words

Zing indexes some HTML elements

Configure a table for indexing and searching

Configure a text index group to search across multiple tables

Zing index and search dictionary attributes

Regenerate a text index for a table

Remove an index

Remove an index for a specific field

Remove the text index for a child table

Enable indexing of text in multi-row variable sets

Text indexing statistics and status

Configure tables to use the Japanese tokenizer