Skip to content

Commit

Permalink
Merge branch 'main' into feature/implement-terms_set-query
Browse files Browse the repository at this point in the history
  • Loading branch information
GokselKUCUKSAHIN authored Feb 20, 2025
2 parents 02c834c + df24ab9 commit 8935990
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 360 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
EXISTING_VERSION := $(shell git describe --abbrev=0 --tags)
NEW_VERSION := $(shell echo $(EXISTING_VERSION) | awk -F. '{print ""$$1"."$$2"."$$3 + 1}')

init:
go install github.com/golangci/golangci-lint/cmd/[email protected]
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/[email protected]
go install github.com/gotesttools/gotestfmt/v2/cmd/[email protected]
go install github.com/GokselKUCUKSAHIN/[email protected]

tag_and_push:
git tag $(NEW_VERSION)
git push origin $(NEW_VERSION)
Expand All @@ -18,4 +24,4 @@ unit-test-pretty:
go test ./... -count=1 -v -json | gotestfmt

run-benchmark:
go run ./benchmarks/run_bench.go -cooldown=15 -save=csv
go-run-bench -cooldown=15 -benchmem=true -save=csv
357 changes: 0 additions & 357 deletions benchmarks/run_bench.go

This file was deleted.

2 changes: 1 addition & 1 deletion es/terms_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type termsType Object
// Returns:
//
// An es.termsType object containing the specified terms query.
func Terms(key string, values ...any) termsType {
func Terms[T primitive](key string, values ...T) termsType {
return termsType{
"terms": Object{
key: values,
Expand Down
2 changes: 1 addition & 1 deletion es/terms_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func Test_Terms_should_exist_on_es_package(t *testing.T) {
t.Parallel()
// Given When Then
assert.NotNil(t, es.Terms)
assert.NotNil(t, es.Terms[string])
}

func Test_Terms_should_create_json_with_terms_field_inside_query(t *testing.T) {
Expand Down
Loading

0 comments on commit 8935990

Please sign in to comment.