invert

package
v0.0.0-...-e7b590b Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 3 Imported by: 0

README

An Inverted Index is a data structure used to create full text search. Given a set of text files, implement a program to create an inverted index. Also create a user interface to do a search using that inverted index which returns a list of files that contain the query term / terms. The search index can be in memory.

go test -run ".*"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvertedIndex

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

func (*InvertedIndex) Get

func (index *InvertedIndex) Get(text string) []Result

func (*InvertedIndex) Parse

func (index *InvertedIndex) Parse(filename string)

type Result

type Result struct {
	File string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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