Skip to main content

Administrating MarkLogic Server

Overview of Configuration Options

The following lists the main options you can set in the word query configuration to control how word queries are resolved in a database:

  • By default, all elements are included in the word query configuration and the indexing options are the same as the database indexing options.

  • All word query configurations are set on a per-database basis.

  • The word query configuration controls the behavior of the cts:word-query, cts:words, and cts:word-match APIs. This includes controlling the words that get indexed, as well as controlling the words that are returned from the filter (evaluator) portion of query evaluation.

  • Word query inherits the database index settings as a starting point for its index settings.

  • You cannot turn off indexing options that are enabled in the database settings.

  • If you check index options in word query that are enabled in the database, it will not change any behavior. However, if you subsequently disable a database index setting that is checked in the word query settings, it will remain for the word query.

  • You can include and/or exclude named elements from word queries.

  • For any element you include, you can optionally constrain it by a value for a specified attribute.

  • For any element you include, you can optionally specify a weight. The weight is used when determining relevance scores, where a weight greater than 1.0 will boost scores and a weight lower than 1.0 will lower scores for matches within the element.