Use Full-Text Search

We call full-text search, a user query that does not contain any prefixes. By default, when you enter a query, Exalead CloudView searches the content of the text index field.

In addition to their specific index fields, all properties set to searchable without prefix, also send their content to the text index field. This allows users to search this property without specifying a prefix in the query.

For example, cropped trousers is a simple query for which Exalead CloudView will search for the term cropped, the term trousers, and the combination of these two terms.

The following tutorial shows how to use full-text search with Boolean operators

Context:

You are certainly familiar with common query operators, like:

  • Quotes "" to search for exact phrases. For example, “cropped trousers” will search for the exact expression, not for cropped and trousers separately.

  • OR to search for either one term or another. For example, cat OR pet.

  • AND to search for one term and another term.

    Note: Blank spaces are interpreted as AND implicitly.

  • And maybe also "-" (minus sign) to exclude a term from the search. For example, new -york will search for documents containing new but not york.

Exalead CloudView provides these operators and many others in its User Query Language (UQL), the natural language used for queries. You can use these operators to make simple or rich queries by combining them. For more information, see User Query Language (UQL) in the Exalead CloudView Configuration Guide.

  1. Go to the Mashup UI: http://<HOSTNAME>:<BASEPORT>/mashup-ui
  2. In the Search field, enter: trousers OR shirt NOT "t-shirt"

    Search results display hits for occurrences of trousers and shirt found in the name and description fields (which we set to searchable without prefix in Create a New Class in the Data Model).