all repos — searchix @ ff283282d42ec5f77e9ad8f2c5616e4315b0355e

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat!: use plurals for document IDs and URLs

Alan Pearce
commit

ff283282d42ec5f77e9ad8f2c5616e4315b0355e

parent

0fcfb0252f229d00b426b171ddcd0fb1f1213063

1 file changed, 3 insertions(+), 2 deletions(-)

changed files
M internal/nix/importable.gointernal/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() {