search

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package search provides an inverted index implemenation of the search.Service interface.

Table format:

indexNodes:vname.signature=<src.signature>   -> <ticket>
indexNodes:vname.corpus=<src.corpus>         -> <ticket>
indexNodes:vname.root=<src.root>             -> <ticket>
indexNodes:vname.path=<src.path>             -> <ticket>
indexNodes:vname.language=<src.language>     -> <ticket>
indexNodes:fact.<factName>=<factValue>       -> <ticket>

Index

Constants

This section is empty.

Variables

View Source
var MaxIndexedFactValueSize = 512

MaxIndexedFactValueSize is the maximum length in bytes of fact values to write to the inverted index search table.

Functions

func IndexNode

func IndexNode(ctx context.Context, t table.Inverted, n *srvpb.Node) error

IndexNode writes each of n's VName components and facts to t as search index entries. MaxIndexedFactValueSize limits fact values written to the index.

Types

type Table

type Table struct{ table.Inverted }

Table implements a Service using an inverted index table.

func (*Table) Search

func (t *Table) Search(ctx context.Context, q *spb.SearchRequest) (*spb.SearchReply, error)

Search implements the Service interface.

Jump to

Keyboard shortcuts

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