Skip to content

OPTIONS

The OPTIONS statement configures optional features of the text intelligence engine that are used to best match the characteristics of a given project. The statement can be placed in any source files, however, it is recommended to place it in the config.cr file.

The syntax is:

OPTIONS
{
    option
    [option
    ...]
}

where option can be one of the followings:

  • FIXED_SCORE
  • STATIC_SCORE
  • CHILD_TO_FATHER

    All three options above affect the categorization scoring mechanism.

  • (Advanced use) EXPAND_SYNCON_CACHE=false: disables the cache used to store the expansion of ancestor syncons. The evaluation of every ANCESTOR attribute requires the creation of an in-memory list of descendant syncons. By default, this list is created and cached at compile time, then used at run-time. When this option is set, the list is created at run-time and only when really needed.

  • (Advanced use) EXPAND_SYNCON_LIMIT=value: the value in this option is a positive integer number (default: 2000). It influences the creation of the list of descendant syncons when ANCESTOR attributes are evaluated (see the option above). If the number of descendants exceeds this limit, the cache will not be created at compile time.