diff options
author | Alan Pearce | 2024-05-17 22:59:57 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-17 22:59:57 +0200 |
commit | 698881aa577d2c209f162db9263fab17ced3643f (patch) | |
tree | bb7a3abeb44e6283ce96fe8708a7e273869cecf1 /internal/index | |
parent | f10543d0aff0e203dd57287dc2b736c686e69102 (diff) | |
download | searchix-698881aa577d2c209f162db9263fab17ced3643f.tar.lz searchix-698881aa577d2c209f162db9263fab17ced3643f.tar.zst searchix-698881aa577d2c209f162db9263fab17ced3643f.zip |
feat: use attribute instead of name for packages
Diffstat (limited to 'internal/index')
-rw-r--r-- | internal/index/indexer.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |