From 698881aa577d2c209f162db9263fab17ced3643f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 17 May 2024 22:59:57 +0200 Subject: feat: use attribute instead of name for packages --- internal/index/indexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/index/indexer.go') diff --git a/internal/index/indexer.go b/internal/index/indexer.go index 4a6a9d8..3a146c3 100644 --- a/internal/index/indexer.go +++ b/internal/index/indexer.go @@ -104,7 +104,7 @@ func createIndexMapping() (mapping.IndexMapping, error) { packageMapping := bleve.NewDocumentStaticMapping() - packageMapping.AddFieldMappingsAt("Name", keywordFieldMapping) + packageMapping.AddFieldMappingsAt("Attribute", keywordFieldMapping) packageMapping.AddFieldMappingsAt("Source", keywordFieldMapping) packageMapping.AddFieldMappingsAt("Description", textFieldMapping) packageMapping.AddFieldMappingsAt("MainProgram", keywordFieldMapping) -- cgit 1.4.1