Skip to content

Commit

Permalink
Merge pull request mattbaird#238 from mikeyoon/filter-api
Browse files Browse the repository at this point in the history
Modifying the FilterOp structure
  • Loading branch information
vrecan committed Nov 25, 2015
2 parents d519ca3 + 54b3449 commit 6a1bd9c
Show file tree
Hide file tree
Showing 7 changed files with 461 additions and 82 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Vagrant.configure("2") do |config|
vb.gui = false
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
# This allows symlinks to be created within the /vagrant root directory,
# This allows symlinks to be created within the /vagrant root directory,
# which is something librarian-puppet needs to be able to do. This might
# be enabled by default depending on what version of VirtualBox is used.
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
Expand Down
2 changes: 1 addition & 1 deletion lib/searchaggregate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func TestAggregateFilter(t *testing.T) {
avg := Aggregate("avg_price").Avg("price")

dateAgg := Aggregate("in_stock_products").Filter(
Range().Field("stock").Gt(0),
Filter().Range("stock", nil, 0, nil, nil, ""),
)

dateAgg.Aggregates(
Expand Down
Loading

0 comments on commit 6a1bd9c

Please sign in to comment.