some improvements

This commit is contained in:
ston1th 2019-07-30 18:57:16 +02:00
commit d9d089be0d
8 changed files with 132 additions and 24 deletions

View file

@ -104,6 +104,7 @@ func (i *Index) Search(search string) (results []core.Result, err error) {
}
r := core.Result{StoreTitle: hit.ID}
r.Section, r.Title = render.SplitStoreTitle(hit.ID)
r.Title = render.Untitle(r.Title)
d, err := i.i.Document(hit.ID)
if d == nil || err != nil {
continue