search

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field = string

type Item

type Item struct {
	ID   string      `json:"id"`
	Data interface{} `json:"data"`
}

type Location

type Location struct {
	Start uint64 `json:"start"`
	End   uint64 `json:"end"`
}

type LocationMap

type LocationMap map[Field]map[Term]Location

type OptionSortByItem

type OptionSortByItem struct {
	Field   string `json:"field"`
	Reverse bool   `json:"reverse"`
}

type Options

type Options struct {
	From   int                `json:"from"`
	Size   int                `json:"size"`
	SortBy []OptionSortByItem `json:"sort_by"`
}

type Result

type Result struct {
	Score    float64                `json:"score"`
	Fields   map[string]interface{} `json:"fields"`
	Location LocationMap            `json:"location"`
}

type Term

type Term = string

Directories

Path Synopsis
Package bleve fork from github.com/wangbin/jiebago and update bleve version
Package bleve fork from github.com/wangbin/jiebago and update bleve version

Jump to

Keyboard shortcuts

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