Back to godoc.org
github.com/documize/community / model / search

package search

v3.2.0+incompatible
Latest Go to latest
Published: Aug 29, 2019 | License: AGPL-3.0 | Module: github.com/documize/community

Index

type QueryOptions

type QueryOptions struct {
	Keywords   string `json:"keywords"`
	Doc        bool   `json:"doc"`
	Tag        bool   `json:"tag"`
	Attachment bool   `json:"attachment"`
	Content    bool   `json:"content"`
	SkipLog    bool   `json:"slog"`
}

QueryOptions defines how we search.

type QueryResult

type QueryResult struct {
	ID           string    `json:"id"`
	OrgID        string    `json:"orgId"`
	ItemID       string    `json:"itemId"`
	ItemType     string    `json:"itemType"`
	DocumentID   string    `json:"documentId"`
	DocumentSlug string    `json:"documentSlug"`
	Document     string    `json:"document"`
	Excerpt      string    `json:"excerpt"`
	Tags         string    `json:"tags"`
	SpaceID      string    `json:"spaceId"`
	Space        string    `json:"space"`
	SpaceSlug    string    `json:"spaceSlug"`
	Template     bool      `json:"template"`
	VersionID    string    `json:"versionId"`
	Created      time.Time `json:"created"`
	Revised      time.Time `json:"revised"`
}

QueryResult represents 'presentable' search results.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier