Search app - Tizra/Tizra-Customer-Tracker GitHub Wiki
The search app is controlled by a JavaScript object called the config. The
config is built by combining an internal default config with TOML supplied
in the SearchConfig design parameter.
Advanced configs can use SearchConfigJs instead of SearchConfig which
allows including functions and promises in the config, but this isn’t
necessary for most sites.
The cookbook examples below all use TOML syntax.
Default configuration:
[metaTypes]
metadata = ['Book', 'PageRange']
fulltext = 'PdfPage'Change full-text searching to use excerpt indexing:
[metaTypes]
fulltext = 'PageRange'Search articles metadata and full-text in addition to the defaults:
[metaTypes]
metadata = ['Article', 'Book', 'PageRange']
fulltext = ['Article', 'PdfPage']Modify "Include in Advanced Search?" for the given fields in the Tizra Admin.
The full config is the combination of:
-
default-config.js in the search app sources (link for Tizra developers only)
-
customer-supplied
SearchConfigorSearchConfigJs -
response from the
search-typesAPI, which includes things like the field types and whether they’re marked "Include in Advanced Search" in the admin.
You can see the full derived configuration for a site by appending ?debug
to the advanced search. For example on the Tizra support site:
https://support.tizra.com/~advancedSearch?debug