Configuring Query Expansion for Application Builder

This section describes how to configure automatic and suggested search query expansions for your application.

About this task

Query expansion is the process of automatically or manually increasing the terms in a search query by selecting them from a taxonomy of related terms. Query expansion options can be found in the Settings > Search section of the Application Builder settings page (the cog icon on the navigation bar).

Before query expansion can be used in an application, a Watson Explorer Engine ontolection must exist. For information about onotolections, see Creating an Ontolection.

Note: You can use the natural language querying Ontolection Trainer component of Watson Explorer Engine to train an ontolection, which you can then use with query expansion.

After you create one or more ontolections, you can use them to provide query expansion with the following settings:

When a user enters a query into the search box, the system looks for expansions in the ontolections that have been defined as query expansion stores, trying to match the set of single terms, any quoted phrases, and the entire query string. For example, if the following set of terms and expansions are available in a query-expansion-store:

When all expansions are active, the query new car color would become new AND (car OR automobile) AND (color OR colour).

The query new "car color" would become new AND (car color OR paint job). The expanded query continues to follow this sort of logic and becomes more complex when multiple expansion terms (words and phrases) overlap.

When enabled, query expansion options are available to the user at the top of the search results widget, and are only visible when the query has expansions available.