diff --git a/crates/pile-config/src/config.toml b/crates/pile-config/src/config.toml index 36a94b5..6b395aa 100644 --- a/crates/pile-config/src/config.toml +++ b/crates/pile-config/src/config.toml @@ -9,7 +9,7 @@ name = "dataset" # working_dir = ".pile" # Data sources available in this dataset -source."music" = { type = "filesystem", path = "music" } +source."music" = { type = "filesystem", path = "library" } # This dataset's schema. # Defines normalized fields that are extracted from source entries on-demand. @@ -21,18 +21,18 @@ source."music" = { type = "filesystem", path = "music" } # # only text is supported in this version. # type = "text", # -# # An array of jsonpaths (rfc9535) used to extract this field from each source entry. +# # How to extract this field from each source entry. # # These are evaluated in order, the first non-null value is used. -# # A single string is equivalent to an array with one element. -# path = "$.json.path" +# path = [ "$.json.path" ] # } [schema] -album = { type = "text", path = "$.Album" } -isrc = { type = "text", path = "$.Isrc" } -artist = { type = "text", path = ["$.Artist", "$.TrackArtist"] } -lyrics = { type = "text", path = "$.Lyrics" } -genre = { type = "text", path = "$.Genre" } -title = { type = "text", path = ["$.Title", "$.TrackTitle"] } +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.