[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 }