feat: add 'parents' facet to options
1 file changed, 2 insertions(+), 0 deletions(-)
changed files
M internal/importer/options.go → internal/importer/options.go
@@ -4,6 +4,7 @@ import ( "context" "io" "reflect" + "strings" "time" "alin.ovh/x/log"@@ -180,6 +181,7 @@ Description: nix.Markdown(i.optJSON.Description), Example: i.convertDocsValue(i.optJSON.Example), RelatedPackages: nix.Markdown(i.optJSON.RelatedPackages), Loc: i.optJSON.Loc, + Parents: strings.Join(i.optJSON.Loc[:len(i.optJSON.Loc)-1], "."), Type: i.optJSON.Type, ImportedAt: time.Now(), }