indexer

package
v0.0.0-...-638b565 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: MIT Imports: 6 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 {
	Title  string
	Author string
	Body   string
}

type InvertedIndex

type InvertedIndex struct {
	// contains filtered or unexported fields
}

func Index

func Index(files []string) InvertedIndex

func (InvertedIndex) Search

func (index InvertedIndex) Search(query string) map[int][]int

func (InvertedIndex) Size

func (index InvertedIndex) Size() int

func (InvertedIndex) String

func (index InvertedIndex) String() string

Jump to

Keyboard shortcuts

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