Configuration

Configuration

The configuration options of the Garamond search engine can be logically split into three main categories, based on what is configured and where the options actually reside:

Data configuration

Missing data configuration options

For a developers view on the usage of the data configuration options, check the sample configuration files and the data configuration parser. It is important to note that some of these options may change quite frequently as the engine is under heavy development w.r.t. the data API.

Engine configuration

A sample ~/.garamondrc file with all available configuration options filled would look like:

# Text to pdf program
const PDFTOTEXT_PROGRAM = "/bin/pdftotext"

# Maximum edit distance for suggestion search
const MAX_EDIT_DISTANCE = 2

# Default maximum matches to return
const MAX_MATCHES = 1_000

# Default maximum number of suggestions to return
# for each non-matched query term when squashing
# results from several corpora
const MAX_SUGGESTIONS = 10

# Default approach to combine the retrieved document
# scores from multiple searchers
const RESULT_AGGREGATION_STRATEGY = :mean

Internal configuration

The full internal configuration of the engine can be readily viewed in src/config/defaults.jl.