Skip to content

Commit 01dd6bf

Browse files
merge
2 parents e24bd5c + bd1fa60 commit 01dd6bf

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

redisearch/aggregate.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"reflect"
88
)
99

10-
// Projection - Apply a 1-to-1 transformation on one or more properties,
10+
// Projection - Apply a 1-to-1 transformation on one or more properties,
1111
// and either store the result as a new property down the pipeline, or
1212
// replace any property using this transformation. Expression is an expression
13-
// that can be used to perform arithmetic operations on numeric properties,
14-
// or functions that can be applied on properties depending on their types,
13+
// that can be used to perform arithmetic operations on numeric properties,
14+
// or functions that can be applied on properties depending on their types,
1515
// or any combination thereof.
1616
type Projection struct {
1717
Expression string
@@ -71,7 +71,7 @@ func (c Cursor) Serialize() redis.Args {
7171
return args
7272
}
7373

74-
//GroupBy groups the results in the pipeline based on one or more properties.
74+
//GroupBy groups the results in the pipeline based on one or more properties.
7575
//Each group should have at least one reducer, a function that handles the group
7676
//entries, either counting them, or performing multiple aggregate operations.
7777
type GroupBy struct {
@@ -108,7 +108,7 @@ func (g *GroupBy) Reduce(reducer Reducer) *GroupBy {
108108
return g
109109
}
110110

111-
// Limit adds Paging to the GroupBy object
111+
// Limit adds Paging to the GroupBy object
112112
func (g *GroupBy) Limit(offset int, num int) *GroupBy {
113113
g.Paging = NewPaging(offset, num)
114114
return g
@@ -162,7 +162,7 @@ func (a *AggregateQuery) SetWithSchema(value bool) *AggregateQuery {
162162
return a
163163
}
164164

165-
// SetVerbatim - If set, we do not try to use stemming for query expansion but search
165+
// SetVerbatim - If set, we do not try to use stemming for query expansion but search
166166
// the query terms verbatim.
167167
func (a *AggregateQuery) SetVerbatim(value bool) *AggregateQuery {
168168
a.Verbatim = value

redisearch/autocomplete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (a *Autocompleter) Suggest(prefix string, num int, fuzzy bool) (ret []Sugge
128128

129129
// SuggestOpts gets completion suggestions from the Autocompleter dictionary to the given prefix.
130130
// SuggestOptions are passed allowing you specify if the returned values contain a payload, and scores.
131-
// If SuggestOptions.Fuzzy is set, we also complete for prefixes that are in 1 Levenshtein distance
131+
// If SuggestOptions.Fuzzy is set, we also complete for prefixes that are in 1 Levenshtein distance
132132
// from the given prefix
133133
func (a *Autocompleter) SuggestOpts(prefix string, opts SuggestOptions) (ret []Suggestion, err error) {
134134
conn := a.pool.Get()

redisearch/document.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func EscapeTextFileString(value string) string {
8686
return value
8787
}
8888

89-
// internal function
89+
// internal function
9090
// loadDocument convert the result from a redis query to a proper Document object
9191
func loadDocument(arr []interface{}, idIdx, scoreIdx, payloadIdx, fieldsIdx int) (Document, error) {
9292

@@ -140,7 +140,8 @@ func (d *Document) loadFields(lst []interface{}) *Document {
140140
type DocumentList []Document
141141

142142
// Len returns the length of the DocumentList
143-
func (l DocumentList) Len() int { return len(l) }
143+
func (l DocumentList) Len() int { return len(l) }
144+
144145
// Swap two documents in the list by their index
145146
func (l DocumentList) Swap(i, j int) { l[i], l[j] = l[j], l[i] }
146147
func (l DocumentList) Less(i, j int) bool { return l[i].Score > l[j].Score } //reverse sorting

redisearch/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func appendNumArgs(num float64, exclude bool, args redis.Args) redis.Args {
243243
return append(args, num)
244244
}
245245

246-
// AddFilter adds a filter to the query.
246+
// AddFilter adds a filter to the query.
247247
func (q *Query) AddFilter(f Filter) *Query {
248248
if q.Filters == nil {
249249
q.Filters = []Filter{}

0 commit comments

Comments
 (0)