Fix tests
This commit is contained in:
@@ -9,7 +9,7 @@ name = "dataset"
|
|||||||
# working_dir = ".pile"
|
# working_dir = ".pile"
|
||||||
|
|
||||||
# Data sources available in this dataset
|
# Data sources available in this dataset
|
||||||
source."music" = { type = "filesystem", path = "music" }
|
source."music" = { type = "filesystem", path = "library" }
|
||||||
|
|
||||||
# This dataset's schema.
|
# This dataset's schema.
|
||||||
# Defines normalized fields that are extracted from source entries on-demand.
|
# 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.
|
# # only text is supported in this version.
|
||||||
# type = "text",
|
# 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.
|
# # 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]
|
[schema]
|
||||||
album = { type = "text", path = "$.Album" }
|
album = { type = "text", path = ["$.flac.album"] }
|
||||||
isrc = { type = "text", path = "$.Isrc" }
|
isrc = { type = "text", path = ["$.flac.isrc"] }
|
||||||
artist = { type = "text", path = ["$.Artist", "$.TrackArtist"] }
|
artist = { type = "text", path = ["$.flac.artist", "$.flac.trackartist"] }
|
||||||
lyrics = { type = "text", path = "$.Lyrics" }
|
lyrics = { type = "text", path = ["$.flac.lyrics"] }
|
||||||
genre = { type = "text", path = "$.Genre" }
|
genre = { type = "text", path = ["$.flac.genre"] }
|
||||||
title = { type = "text", path = ["$.Title", "$.TrackTitle"] }
|
title = { type = "text", path = ["$.flac.tracktitle", "$.flac.title"] }
|
||||||
|
|
||||||
|
|
||||||
# Fts configuration.
|
# Fts configuration.
|
||||||
# Determines which fields (defined in `schema`) are included in the fts index.
|
# Determines which fields (defined in `schema`) are included in the fts index.
|
||||||
|
|||||||
Reference in New Issue
Block a user