Skip to content

Commit

Permalink
Fix: search offset when grouping is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Mar 19, 2021
1 parent 8ae3de4 commit 60089c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/elastic/core/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ func (e *Elastic) SearchByText(text string, offset int64, fields []string, filte

if group {
query = grouping(ctx, query)
} else {
query.From(offset)
}

var response searchByTextResponse
Expand Down

0 comments on commit 60089c3

Please sign in to comment.