indexing

package
v0.0.0-...-5420e35 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexDocs

func IndexDocs(index bleve.Index, nextDoc func() (Indexable, error)) error

IndexDocs - index some Docs nextDoc allow you to parse your file progressivly

func InitIndex

func InitIndex(indexFile string) (bleve.Index, error)

InitIndex -

func OpenIndex

func OpenIndex(indexFile string) (bleve.Index, error)

OpenIndex -

Types

type Indexable

type Indexable interface {
	GetID() string
}

Indexable - interface to abstract struct that can be indexable

func QueryIndex

func QueryIndex(index bleve.Index, query Queries.ITamalouQuery, buildIndexable func(*document.Document) Indexable) ([]Indexable, error)

QueryIndex - Make a query on the given index Use the passed function to build the document into the wished struct

Jump to

Keyboard shortcuts

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