Skip to content

Commit

Permalink
Merge properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Yoon committed Apr 4, 2015
1 parent b2eeb9d commit eb0ff28
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions lib/searchfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ func (f *FilterOp) Exists(field string) *FilterOp {
f.ExistsProp = &PropertyPathMarker{Field: field}
return f
}
<<<<<<< HEAD

func (f *FilterOp) Missing(field string) *FilterOp {
f.MissingProp = &PropertyPathMarker{Field: field}
Expand All @@ -308,24 +307,4 @@ func (f *FilterOp) Missing(field string) *FilterOp {

func (f *FilterOp) SetLimit(maxResults int) *FilterOp {
f.Limit = &LimitFilter{Value: maxResults}
=======
func (f *FilterOp) Missing(name string) *FilterOp {
f.MissingVal = map[string]string{"field": name}
return f
}

// Add another Filterop, "combines" two filter ops into one
func (f *FilterOp) Add(fop *FilterOp) *FilterOp {
// TODO, this is invalid, refactor
if len(fop.Exist) > 0 {
f.Exist = fop.Exist
}
if len(fop.MissingVal) > 0 {
f.MissingVal = fop.MissingVal
}
if len(fop.Range) > 0 {
f.Range = fop.Range
}
>>>>>>> mattbaird/master
return f
}
}

0 comments on commit eb0ff28

Please sign in to comment.