func NewIndex() *Index {
	return &Index{lines: map[string]string{}, charts: map[string]*helmRepo.ChartVersion{}}
}
NewIndex creates a new Index.
package search
import (
	"github.com/rancher-sandbox/hypper/pkg/repo"
	"path"
	"regexp"
	"sort"
	"strings"
	"github.com/Masterminds/semver/v3"
	helmRepo "helm.sh/helm/v3/pkg/repo"
)
type Result struct {
	Name  string
	Score int
	Chart *helmRepo.ChartVersion
}
type Index struct {
	lines  map[string]string
	charts map[string]*helmRepo.ChartVersion
}
const sep = "\v"