feat!: use plurals for document IDs and URLs
1 file changed, 3 insertions(+), 2 deletions(-)
changed files
M internal/nix/importable.go → internal/nix/importable.go
@@ -7,17 +7,18 @@ "alin.ovh/searchix/internal/config" ) type Importable interface { + ImporterType() string BleveType() string GetName() string GetSource() string } func GetKey(i Importable) string { - return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName() + return i.ImporterType() + "/" + i.GetSource() + "/" + i.GetName() } func MakeKey(source config.Source, id string) string { - return source.Importer.Singular() + "/" + source.Key + "/" + id + return source.Importer.String() + "/" + source.Key + "/" + id } func init() {