req

package
v0.0.0-...-53399b3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseReq

type BaseReq struct {
	Database string `json:"database,omitempty"`
	Q        string `json:"q,omitempty"`
}

type IndexBatchReq

type IndexBatchReq struct {
	Items []*IndexReq
	BaseReq
}

type IndexRemoveReq

type IndexRemoveReq struct {
	ID uint32 `json:"id"`
	BaseReq
}

type IndexReq

type IndexReq struct {
	ID       uint32                 `json:"id"`
	Text     string                 `json:"text"`
	Document map[string]interface{} `json:"document"`
	BaseReq
}

type QueryReq

type QueryReq struct {
	Query     string `json:"query"`
	Page      int    `json:"page"`
	Limit     int    `json:"limit"`
	Order     string `json:"order"`
	ScoreExp  string `json:"scoreExp,omitempty"`
	Highlight struct {
		PreTag  string `json:"preTag"`
		PostTag string `json:"postTag"`
	} `json:"highlight,omitempty"`
	BaseReq
}

func (*QueryReq) Default

func (r *QueryReq) Default()

Jump to

Keyboard shortcuts

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