Files
pile/crates/pile-config/src/config.toml
rm-dr 8a9388020c
Some checks are pending
CI / Typos (push) Successful in 22s
CI / Clippy (push) Has started running
CI / Build and test (push) Has started running
CI / Build and test (all features) (push) Has started running
Fix tests
2026-03-11 12:24:45 -07:00

46 lines
1.4 KiB
TOML

[dataset]
# This dataset's name. Must be unique.
name = "dataset"
# root directory for fts indices, relative to the parent dir of this config file.
# Files are written to {working_dir}/{dataset.name}/*.
# Default is ".pile"
#
# working_dir = ".pile"
# Data sources available in this dataset
source."music" = { type = "filesystem", path = "library" }
# This dataset's schema.
# Defines normalized fields that are extracted from source entries on-demand.
#
# Format is as follows:
#
# "field-name" = {
# # The type of data this field contains.
# # only text is supported in this version.
# type = "text",
#
# # How to extract this field from each source entry.
# # These are evaluated in order, the first non-null value is used.
# path = [ "$.json.path" ]
# }
[schema]
album = { type = "text", path = ["$.flac.album"] }
isrc = { type = "text", path = ["$.flac.isrc"] }
artist = { type = "text", path = ["$.flac.artist", "$.flac.trackartist"] }
lyrics = { type = "text", path = ["$.flac.lyrics"] }
genre = { type = "text", path = ["$.flac.genre"] }
title = { type = "text", path = ["$.flac.tracktitle", "$.flac.title"] }
# Fts configuration.
# Determines which fields (defined in `schema`) are included in the fts index.
[fts]
field.album = { tokenize = true }
field.isrc = { tokenize = true }
field.artist = { tokenize = true }
field.lyrics = { tokenize = true }
field.genre = { tokenize = true }
field.title = { tokenize = true }