~swalladge/searchr

ref: 12ba54bea5346c907a209801cc81fefa6e09147a searchr/example_config.toml -rw-r--r-- 1.2 KiB
12ba54beSamuel Walladge Add contributing guidelines 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[main]

# Default index to use. Required if more than one index defined below.
default_index = "wiki"


# Multiple indexes can be supplied following the below format. Each index must
# have a unique name. Use a unique index_path per index.
[indexes.wiki]
# see https://docs.rs/tantivy/0.10.1/tantivy/tokenizer/enum.Language.html for
# available languages. Default is "English".
# If this is changed, the index files must be manually removed, and index
# recreated.
language = "English"

# The directory to store the index files in. Must exist. Should be an absolute
# path.
index_path = "/home/swalladge/.wiki-index"

# List of files to index. Globbing supported - uses the glob crate - see
# https://docs.rs/glob/0.3.0/glob/ for behaviour specific to this globbing
# library.
files = [
  '/home/swalladge/wiki/**/*.md',
]

# Custom options for glob matching files for this index. These are optional.
# See https://docs.rs/glob/0.3.0/glob/struct.MatchOptions.html for details.
# Defaults are shown below:
# case_sensitive = true
# require_literal_separator = false
# require_literal_leading_dot = false
# Note that require_literal_leading_dot is not fully working. See https://github.com/rust-lang-nursery/glob/issues/67