community: github.com/documize/community/model/search Index | Files

package search

import "github.com/documize/community/model/search"

Index

Package Files

search.go

type QueryOptions Uses

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 Uses

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.

Package search imports 1 packages (graph) and is imported by 3 packages. Updated 2019-04-27. Refresh now. Tools for package owners.