Skip to content

Commit a8beab1

Browse files
Display 0 bytesRead in search responses (#1788)
removed omitempty for bytesRead
1 parent b43d984 commit a8beab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ type SearchResult struct {
490490
Request *SearchRequest `json:"request"`
491491
Hits search.DocumentMatchCollection `json:"hits"`
492492
Total uint64 `json:"total_hits"`
493-
BytesRead uint64 `json:"bytesRead,omitempty"`
493+
BytesRead uint64 `json:"bytesRead"`
494494
MaxScore float64 `json:"max_score"`
495495
Took time.Duration `json:"took"`
496496
Facets search.FacetResults `json:"facets"`

0 commit comments

Comments
 (0)