indexer

package
v0.0.0-...-3b46ce3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2016 License: BSD-2-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	URL   string `json:"u"`
	Title string `json:"t"`
}

type Index

type Index struct {
	Docs  []*Document              `json:"docs"`
	Words map[string][]interface{} `json:"words"`

	HTMLTitleWeight        int `json:"-"`
	HTMLURLComponentWeight int `json:"-"`
}

func New

func New() *Index

func (*Index) AddHTML

func (n *Index) AddHTML(url string, r io.Reader) error

func (*Index) AddText

func (n *Index) AddText(url, title string, r io.Reader) error

func (*Index) WriteJSON

func (n *Index) WriteJSON(w io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL