diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 12c5907..898b980 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -45,4 +45,4 @@ jobs: uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} - slug: GokselKUCUKSAHIN/es-query-builder \ No newline at end of file + slug: Trendyol/es-query-builder \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index e0b11fc..e8bfc57 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,7 +3,7 @@ project_name: es-query-builder release: github: name: es-query-builder - owner: GokselKUCUKSAHIN + owner: Trendyol before: hooks: diff --git a/README.md b/README.md index 40c6d78..4fe19d9 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ for low overhead and minimal memory usage. With [Go's module support](https://go.dev/wiki/Modules#how-to-use-modules), `go [build|run|test]` automatically fetches the necessary dependencies when you add the import in your code: ```sh -import "github.com/GokselKUCUKSAHIN/es-query-builder" +import "github.com/Trendyol/es-query-builder" ``` Alternatively, use `go get`: ```sh -go get -u github.com/GokselKUCUKSAHIN/es-query-builder +go get -u github.com/Trendyol/es-query-builder ``` ### Example @@ -181,7 +181,7 @@ You can check and run [benchmarks](./benchmarks) on your machine. - **Memory**: 512MB LPDDR2 - **Go Version**: go1.22.3 -![armv6l](https://github.com/GokselKUCUKSAHIN/es-query-builder/assets/33639948/8972003d-9b00-4021-9f69-347723ac59de) +![armv6l](https://github.com/Trendyol/es-query-builder/assets/33639948/8972003d-9b00-4021-9f69-347723ac59de) ### ARM64 @@ -191,20 +191,20 @@ You can check and run [benchmarks](./benchmarks) on your machine. - **Memory**: 32GB LPDDR5 - **Go Version**: go1.22.1 -![arm64](https://github.com/GokselKUCUKSAHIN/es-query-builder/assets/33639948/ca9e2603-ebcd-4dec-92f4-e501ddcc4abe) +![arm64](https://github.com/Trendyol/es-query-builder/assets/33639948/ca9e2603-ebcd-4dec-92f4-e501ddcc4abe) # Want to Contribute?
Join Us - join us + join us
### Contribute to Our Project Want to help out? Awesome! Here’s how you can contribute: -1. **Report Issues:** Got a suggestion, recommendation, or found a bug? Head over to the [Issues](https://github.com/GokselKUCUKSAHIN/es-query-builder/issues) section and let us know. +1. **Report Issues:** Got a suggestion, recommendation, or found a bug? Head over to the [Issues](https://github.com/Trendyol/es-query-builder/issues) section and let us know. 2. **Make Changes:** Want to improve the code? - Fork the repo @@ -218,18 +218,18 @@ We’re excited to see your contributions. Thanks for helping make this project MIT - Please check the [LICENSE](./LICENSE) file for full text. -[doc-img]: https://godoc.org/github.com/GokselKUCUKSAHIN/es-query-builder?status.svg +[doc-img]: https://godoc.org/github.com/Trendyol/es-query-builder?status.svg -[doc]: https://godoc.org/github.com/GokselKUCUKSAHIN/es-query-builder +[doc]: https://godoc.org/github.com/Trendyol/es-query-builder -[go-report-img]: https://goreportcard.com/badge/github.com/GokselKUCUKSAHIN/es-query-builder +[go-report-img]: https://goreportcard.com/badge/github.com/Trendyol/es-query-builder -[go-report]: https://goreportcard.com/report/github.com/GokselKUCUKSAHIN/es-query-builder +[go-report]: https://goreportcard.com/report/github.com/Trendyol/es-query-builder -[cov-img]: https://codecov.io/gh/GokselKUCUKSAHIN/es-query-builder/branch/main/graph/badge.svg +[cov-img]: https://codecov.io/gh/Trendyol/es-query-builder/branch/main/graph/badge.svg -[cov]: https://codecov.io/gh/GokselKUCUKSAHIN/es-query-builder +[cov]: https://codecov.io/gh/Trendyol/es-query-builder -[ci-img]: https://github.com/GokselKUCUKSAHIN/es-query-builder/actions/workflows/build-test.yml/badge.svg +[ci-img]: https://github.com/Trendyol/es-query-builder/actions/workflows/build-test.yml/badge.svg -[ci]: https://github.com/GokselKUCUKSAHIN/es-query-builder/actions/workflows/build-test.yml \ No newline at end of file +[ci]: https://github.com/Trendyol/es-query-builder/actions/workflows/build-test.yml \ No newline at end of file diff --git a/benchmarks/aggs_example_test.go b/benchmarks/aggs_example_test.go index 3abb1d2..67404b0 100644 --- a/benchmarks/aggs_example_test.go +++ b/benchmarks/aggs_example_test.go @@ -4,9 +4,9 @@ import ( "encoding/json" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/es/enums/sort/order" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Aggs Example //// diff --git a/benchmarks/complex_example_test.go b/benchmarks/complex_example_test.go index c1119f4..a82a8e8 100644 --- a/benchmarks/complex_example_test.go +++ b/benchmarks/complex_example_test.go @@ -4,10 +4,10 @@ import ( "encoding/json" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/mode" - "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/es/enums/sort/mode" + "github.com/Trendyol/es-query-builder/es/enums/sort/order" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Complex Example //// diff --git a/benchmarks/conditional_complex_example_test.go b/benchmarks/conditional_complex_example_test.go index 4aa56f9..2ec3b4e 100644 --- a/benchmarks/conditional_complex_example_test.go +++ b/benchmarks/conditional_complex_example_test.go @@ -4,9 +4,9 @@ import ( "encoding/json" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/es/enums/sort/order" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Conditional Complex Example //// diff --git a/benchmarks/intermediate_example_test.go b/benchmarks/intermediate_example_test.go index d699033..7860d70 100644 --- a/benchmarks/intermediate_example_test.go +++ b/benchmarks/intermediate_example_test.go @@ -4,9 +4,9 @@ import ( "encoding/json" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/es/enums/sort/order" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Intermediate Example //// diff --git a/benchmarks/nested_example_test.go b/benchmarks/nested_example_test.go index a1f67be..1eb3cc2 100644 --- a/benchmarks/nested_example_test.go +++ b/benchmarks/nested_example_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Nested Example //// diff --git a/benchmarks/readme_test.go b/benchmarks/readme_test.go index 4ff8ab0..8924d3c 100644 --- a/benchmarks/readme_test.go +++ b/benchmarks/readme_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Readme Example //// diff --git a/benchmarks/simple_example_test.go b/benchmarks/simple_example_test.go index 7002411..6dde0ee 100644 --- a/benchmarks/simple_example_test.go +++ b/benchmarks/simple_example_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Simple Example //// diff --git a/benchmarks/ty_example_test.go b/benchmarks/ty_example_test.go index a4e41c0..98d385f 100644 --- a/benchmarks/ty_example_test.go +++ b/benchmarks/ty_example_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// TY Example //// diff --git a/es/aggregations.go b/es/aggregations.go index 23b8b5b..e3bb0e3 100644 --- a/es/aggregations.go +++ b/es/aggregations.go @@ -1,6 +1,6 @@ package es -import Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" +import Order "github.com/Trendyol/es-query-builder/es/enums/sort/order" type aggsType Object diff --git a/es/aggregations_test.go b/es/aggregations_test.go index dc64092..48f7e1e 100644 --- a/es/aggregations_test.go +++ b/es/aggregations_test.go @@ -3,10 +3,10 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" - Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" + Order "github.com/Trendyol/es-query-builder/es/enums/sort/order" ) //// AGGS //// diff --git a/es/bool_query_test.go b/es/bool_query_test.go index 9375685..3760c39 100644 --- a/es/bool_query_test.go +++ b/es/bool_query_test.go @@ -3,8 +3,8 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Bool //// diff --git a/es/condition/if_test.go b/es/condition/if_test.go index 21585bc..b5e0c19 100644 --- a/es/condition/if_test.go +++ b/es/condition/if_test.go @@ -3,9 +3,9 @@ package condition_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/es/condition" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/es/condition" + "github.com/Trendyol/es-query-builder/test/assert" ) func Test_Condition_If_should_add_Term_When_condition_is_true(t *testing.T) { diff --git a/es/enums/match/operator/operator_test.go b/es/enums/match/operator/operator_test.go index 2e7705c..9be948e 100644 --- a/es/enums/match/operator/operator_test.go +++ b/es/enums/match/operator/operator_test.go @@ -3,8 +3,8 @@ package operator_test import ( "testing" - Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator" + "github.com/Trendyol/es-query-builder/test/assert" ) func Test_ScoreModeString(t *testing.T) { diff --git a/es/enums/nested/score-mode/score_mode_test.go b/es/enums/nested/score-mode/score_mode_test.go index 42865ee..c28c853 100644 --- a/es/enums/nested/score-mode/score_mode_test.go +++ b/es/enums/nested/score-mode/score_mode_test.go @@ -3,8 +3,8 @@ package scoremode_test import ( "testing" - scoremode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/nested/score-mode" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + scoremode "github.com/Trendyol/es-query-builder/es/enums/nested/score-mode" + "github.com/Trendyol/es-query-builder/test/assert" ) func Test_ScoreModeString(t *testing.T) { diff --git a/es/enums/sort/mode/mode_test.go b/es/enums/sort/mode/mode_test.go index cbc14d9..570deb7 100644 --- a/es/enums/sort/mode/mode_test.go +++ b/es/enums/sort/mode/mode_test.go @@ -3,9 +3,9 @@ package mode_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/test/assert" - Mode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/mode" + Mode "github.com/Trendyol/es-query-builder/es/enums/sort/mode" ) func Test_ModeString(t *testing.T) { diff --git a/es/enums/sort/order/order_test.go b/es/enums/sort/order/order_test.go index 2a843df..4f39ea8 100644 --- a/es/enums/sort/order/order_test.go +++ b/es/enums/sort/order/order_test.go @@ -3,8 +3,9 @@ package order_test import ( "testing" - Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/test/assert" + + Order "github.com/Trendyol/es-query-builder/es/enums/sort/order" ) func TestOrderString(t *testing.T) { diff --git a/es/exists_query_test.go b/es/exists_query_test.go index 24f98e1..036b1c9 100644 --- a/es/exists_query_test.go +++ b/es/exists_query_test.go @@ -3,8 +3,8 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Exists //// diff --git a/es/match_all_query_test.go b/es/match_all_query_test.go index cdba3d9..2c677dc 100644 --- a/es/match_all_query_test.go +++ b/es/match_all_query_test.go @@ -3,8 +3,8 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// MatchAll //// diff --git a/es/match_none_query.go b/es/match_none_query.go index 7cceecf..4b09b0d 100644 --- a/es/match_none_query.go +++ b/es/match_none_query.go @@ -1,6 +1,6 @@ package es -import Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator" +import Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator" type matchNoneType Object diff --git a/es/match_none_query_test.go b/es/match_none_query_test.go index 74bfe2d..610133d 100644 --- a/es/match_none_query_test.go +++ b/es/match_none_query_test.go @@ -3,10 +3,10 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" - Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator" + Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator" ) //// MatchNone //// diff --git a/es/match_query.go b/es/match_query.go index 8e8e43c..a3a80a0 100644 --- a/es/match_query.go +++ b/es/match_query.go @@ -1,6 +1,6 @@ package es -import Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator" +import Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator" type matchType Object diff --git a/es/match_query_test.go b/es/match_query_test.go index 2cb9461..6589340 100644 --- a/es/match_query_test.go +++ b/es/match_query_test.go @@ -3,10 +3,10 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" - Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator" + Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator" ) //// Match //// diff --git a/es/nested_query.go b/es/nested_query.go index ee92fc0..4056869 100644 --- a/es/nested_query.go +++ b/es/nested_query.go @@ -1,6 +1,6 @@ package es -import ScoreMode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/nested/score-mode" +import ScoreMode "github.com/Trendyol/es-query-builder/es/enums/nested/score-mode" type nestedType Object diff --git a/es/nested_query_test.go b/es/nested_query_test.go index 111a343..bc62216 100644 --- a/es/nested_query_test.go +++ b/es/nested_query_test.go @@ -3,10 +3,10 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" - ScoreMode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/nested/score-mode" + ScoreMode "github.com/Trendyol/es-query-builder/es/enums/nested/score-mode" ) //// Nested //// diff --git a/es/query.go b/es/query.go index 758e9e4..53f1c30 100644 --- a/es/query.go +++ b/es/query.go @@ -1,8 +1,8 @@ package es import ( - Mode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/mode" - Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" + Mode "github.com/Trendyol/es-query-builder/es/enums/sort/mode" + Order "github.com/Trendyol/es-query-builder/es/enums/sort/order" ) type sortType Object diff --git a/es/query_test.go b/es/query_test.go index cf4dc0d..8bc0eb5 100644 --- a/es/query_test.go +++ b/es/query_test.go @@ -4,11 +4,11 @@ import ( "reflect" "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" - Mode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/mode" - Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" + Mode "github.com/Trendyol/es-query-builder/es/enums/sort/mode" + Order "github.com/Trendyol/es-query-builder/es/enums/sort/order" ) //// NewQuery //// diff --git a/es/range_test.go b/es/range_test.go index 77dbfb2..f831bc5 100644 --- a/es/range_test.go +++ b/es/range_test.go @@ -3,8 +3,8 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Range //// diff --git a/es/term_query_test.go b/es/term_query_test.go index a33db4e..5c1b51e 100644 --- a/es/term_query_test.go +++ b/es/term_query_test.go @@ -3,8 +3,8 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Term //// diff --git a/es/terms_query_test.go b/es/terms_query_test.go index 9fd49c4..b96389a 100644 --- a/es/terms_query_test.go +++ b/es/terms_query_test.go @@ -3,8 +3,8 @@ package es_test import ( "testing" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/test/assert" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/test/assert" ) //// Terms //// diff --git a/example/example.go b/example/example.go index e9529b9..9a60375 100644 --- a/example/example.go +++ b/example/example.go @@ -6,8 +6,8 @@ import ( "fmt" "log" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" - "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order" + "github.com/Trendyol/es-query-builder/es" + "github.com/Trendyol/es-query-builder/es/enums/sort/order" ) func mockGetDocumentsEs(query string) (string, error) { diff --git a/go.mod b/go.mod index fe97cff..0c7abaf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/GokselKUCUKSAHIN/es-query-builder +module github.com/Trendyol/es-query-builder go 1.18 diff --git a/internal/testing/go.mod b/internal/testing/go.mod index eeef9e8..cf9eb6a 100644 --- a/internal/testing/go.mod +++ b/internal/testing/go.mod @@ -2,10 +2,10 @@ module integration-tests go 1.22 -replace github.com/GokselKUCUKSAHIN/es-query-builder => ./../.. +replace github.com/Trendyol/es-query-builder => ./../.. require ( - github.com/GokselKUCUKSAHIN/es-query-builder v0.2.0 + github.com/Trendyol/es-query-builder v0.2.0 github.com/docker/go-connections v0.5.0 github.com/elastic/elastic-transport-go/v8 v8.6.0 github.com/elastic/go-elasticsearch/v8 v8.15.0 diff --git a/internal/testing/integration_test.go b/internal/testing/integration_test.go index af595ff..2e83bde 100644 --- a/internal/testing/integration_test.go +++ b/internal/testing/integration_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "time" - "github.com/GokselKUCUKSAHIN/es-query-builder/es" + "github.com/Trendyol/es-query-builder/es" "github.com/stretchr/testify/assert" )