Skip to content

Add support for search API #14

@drborges

Description

@drborges
type Tag struct {
  db.Model     `search:"tags" db:"Tags" `
  Name  string `search:"name" db:"id"`
  Owner string `search:"-"`
}

The presence of search tag in any of the struct fields should cause a document to be created with all the fields tagged with search and its id becomes the datastore key used for the given model.

Tagging db.Model with search can be used to override the index name created for the given model.

Any indexing process should happen asynchronously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions