search

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISearchCount

type ISearchCount interface {
	bsonx.Bson
	Total() TotalSearchCount
	LowerBound() LowerBoundSearchCount
	Of(count bsonx.Bson) SearchCount
}

type LowerBoundSearchCount

type LowerBoundSearchCount interface {
	ISearchCount
}

type SearchCollector

type SearchCollector interface {
	bsonx.Bson
}

type SearchCount

type SearchCount struct {
}

func (SearchCount) BsonDocument

func (s SearchCount) BsonDocument() *bsonx.BsonDocument

func (SearchCount) Document

func (s SearchCount) Document() bson.D

func (SearchCount) LowerBound

func (s SearchCount) LowerBound() LowerBoundSearchCount

func (SearchCount) Of

func (s SearchCount) Of(count bsonx.Bson) SearchCount

func (SearchCount) Total

func (s SearchCount) Total() TotalSearchCount

type SearchHighlight

type SearchHighlight interface {
}

type SearchOperator

type SearchOperator interface {
	bsonx.Bson
}

type SearchOptions

type SearchOptions interface {
	bsonx.Bson

	Index(name string) SearchOptions
	Highlight(option SearchHighlight) SearchOptions
	Count(option SearchCount) SearchOptions
	ReturnStoredSource(returnStoredSource bool) SearchOptions
	Option(name string, value any) SearchOptions
}

func DefaultSearchOptions

func DefaultSearchOptions() SearchOptions

type TotalSearchCount

type TotalSearchCount struct {
	SearchCount
}

Jump to

Keyboard shortcuts

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