all repos — searchix @ 0ceaf8ed86c26ea4cb1c11ce6dfbfab88297a464

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

feat: enable searching homepages field

Implements: https://todo.sr.ht/~alanpearce/searchix/20
Alan Pearce alan@alanpearce.eu
Thu, 03 Apr 2025 00:03:26 +0200
commit

0ceaf8ed86c26ea4cb1c11ce6dfbfab88297a464

parent

807a691936113eecb43b6a64e2f4524a68a9a0d1

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M internal/index/indexer.gointernal/index/indexer.go
@@ -137,6 +137,7 @@ packageMapping.AddFieldMappingsAt("Name", nameMapping) 	packageMapping.AddFieldMappingsAt("Attribute", nameMapping)
 	packageMapping.AddFieldMappingsAt("Source", keywordFieldMapping)
 	packageMapping.AddFieldMappingsAt("Description", descriptionFieldMapping)
+	packageMapping.AddFieldMappingsAt("Homepages", keywordFieldMapping)
 	packageMapping.AddFieldMappingsAt("MainProgram", keywordFieldMapping)
 	packageMapping.AddFieldMappingsAt("PackageSet", keywordFieldMapping)
 	packageMapping.AddFieldMappingsAt("Platforms", keywordFieldMapping)