Skip to content

Commit

Permalink
ui: add SearchOpts param
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Jan 17, 2025
1 parent 1aecc2e commit 0e34ede
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/ui/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ func searchForm(ctx context.Context, env Environment, warning *fyne.Container, r
env.Logger.Info().Logf("searching with %d fields", len(populatedItems))

query := buildQueryEntity(populatedItems)
resp, err := env.Client.SearchByEntity(ctx, query)
searchOpts := search.SearchOpts{
Limit: 5,
}
resp, err := env.Client.SearchByEntity(ctx, query, searchOpts)
if err != nil {
env.Logger.Error().LogErrorf("ERROR performing search: %v", err)
showWarning(env, warning, err)
Expand Down

0 comments on commit 0e34ede

Please sign in to comment.