diff --git a/README.md b/README.md index 20f4029..58ac79e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # opensearch query builder -[![](https://img.shields.io/github/license/aquasecurity/esquery?style=flat-square)](LICENSE) [![Build Status](https://circleci.com/gh/deliveroo/os_query.svg?branch=main)](https://app.circleci.com/pipelines/github/deliveroo/os_query?branch=main) +[![](https://img.shields.io/github/license/aquasecurity/esquery?style=flat-square)](LICENSE) [![Build Status](https://circleci.com/gh/deliveroo/os-query.svg?branch=main)](https://app.circleci.com/pipelines/github/deliveroo/os-query?branch=main) **A non-obtrusive, idiomatic and easy-to-use query and aggregation builder for the [official Opensearch client](https://opensearch.org/docs/latest/clients/go/) for [Opensearch](https://opensearch.org/).** @@ -48,7 +48,7 @@ import ( "github.com/opensearch-project/opensearch-go/v2" - oq "github.com/deliveroo/os_query" + oq "github.com/deliveroo/os-query" ) func main() { diff --git a/aggregations_test.go b/aggregations_test.go index f33c93c..ee7857e 100644 --- a/aggregations_test.go +++ b/aggregations_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/aggs_bucket.go b/aggs_bucket.go index 5abc7b4..8058ef4 100644 --- a/aggs_bucket.go +++ b/aggs_bucket.go @@ -1,4 +1,4 @@ -package os_query +package query //----------------------------------------------------------------------------// diff --git a/aggs_filter.go b/aggs_filter.go index b6c0f54..3cd241a 100644 --- a/aggs_filter.go +++ b/aggs_filter.go @@ -1,4 +1,4 @@ -package os_query +package query type FilterAggregation struct { name string diff --git a/aggs_filter_test.go b/aggs_filter_test.go index 7944d37..26f1829 100644 --- a/aggs_filter_test.go +++ b/aggs_filter_test.go @@ -1,4 +1,4 @@ -package os_query +package query import "testing" diff --git a/aggs_metric.go b/aggs_metric.go index db27de7..0bfed92 100644 --- a/aggs_metric.go +++ b/aggs_metric.go @@ -1,4 +1,4 @@ -package os_query +package query import "github.com/fatih/structs" diff --git a/aggs_metric_test.go b/aggs_metric_test.go index 0f82b74..b742527 100644 --- a/aggs_metric_test.go +++ b/aggs_metric_test.go @@ -1,4 +1,4 @@ -package os_query +package query import "testing" diff --git a/aggs_nested.go b/aggs_nested.go index e6ec25d..82111bd 100644 --- a/aggs_nested.go +++ b/aggs_nested.go @@ -1,4 +1,4 @@ -package os_query +package query type NestedAggregation struct { name string diff --git a/aggs_nested_test.go b/aggs_nested_test.go index 172d623..da383dd 100644 --- a/aggs_nested_test.go +++ b/aggs_nested_test.go @@ -1,4 +1,4 @@ -package os_query +package query import "testing" diff --git a/common.go b/common.go index d266e46..7bf8cbb 100644 --- a/common.go +++ b/common.go @@ -1,4 +1,4 @@ -package os_query +package query // Source represents the "_source" option which is commonly accepted in ES // queries. Currently, only the "includes" option is supported. diff --git a/count.go b/count.go index 9fdcf71..485ff72 100644 --- a/count.go +++ b/count.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "bytes" diff --git a/count_test.go b/count_test.go index 5779e19..1637aaf 100644 --- a/count_test.go +++ b/count_test.go @@ -1,4 +1,4 @@ -package os_query +package query import "testing" diff --git a/custom.go b/custom.go index 8cedaea..20f05fd 100644 --- a/custom.go +++ b/custom.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "github.com/opensearch-project/opensearch-go/v2" diff --git a/custom_test.go b/custom_test.go index 5109d40..4c832b2 100644 --- a/custom_test.go +++ b/custom_test.go @@ -1,4 +1,4 @@ -package os_query +package query import "testing" diff --git a/delete.go b/delete.go index 3eb56ff..0e7ca80 100644 --- a/delete.go +++ b/delete.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "bytes" diff --git a/go.mod b/go.mod index a4f5f98..6f6c5f5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/deliveroo/os_query +module github.com/deliveroo/os-query -go 1.21 +go 1.22 require ( github.com/fatih/structs v1.1.0 diff --git a/highlight.go b/highlight.go index 1e56bd5..434652b 100644 --- a/highlight.go +++ b/highlight.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "github.com/fatih/structs" diff --git a/highlight_test.go b/highlight_test.go index f534e13..959a73a 100644 --- a/highlight_test.go +++ b/highlight_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/noopMappable.go b/noopMappable.go index 8cf96b7..a19d55c 100644 --- a/noopMappable.go +++ b/noopMappable.go @@ -1,4 +1,4 @@ -package os_query +package query type noopMappable struct{} diff --git a/os.go b/os.go index 7723769..7ec3c74 100644 --- a/os.go +++ b/os.go @@ -1,4 +1,4 @@ -package os_query +package query // Mappable is the interface implemented by the various query and aggregation // types provided by the package. It allows the library to easily transform the diff --git a/os_test.go b/os_test.go index 1c94c63..e329b2c 100644 --- a/os_test.go +++ b/os_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "encoding/json" diff --git a/queries_test.go b/queries_test.go index 7a66e54..5192bd5 100644 --- a/queries_test.go +++ b/queries_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/query_boolean.go b/query_boolean.go index 1e61109..72919ef 100644 --- a/query_boolean.go +++ b/query_boolean.go @@ -1,4 +1,4 @@ -package os_query +package query import "github.com/fatih/structs" diff --git a/query_boolean_test.go b/query_boolean_test.go index 007840a..8f55539 100644 --- a/query_boolean_test.go +++ b/query_boolean_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/query_boosting.go b/query_boosting.go index 436f6e8..bacc9be 100644 --- a/query_boosting.go +++ b/query_boosting.go @@ -1,4 +1,4 @@ -package os_query +package query // BoostingQuery represents a compound query of type "boosting", as described in // https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-boosting-query.html diff --git a/query_boosting_test.go b/query_boosting_test.go index 49bfc19..dd12d09 100644 --- a/query_boosting_test.go +++ b/query_boosting_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/query_constant_score.go b/query_constant_score.go index ad62df0..ece1cf8 100644 --- a/query_constant_score.go +++ b/query_constant_score.go @@ -1,4 +1,4 @@ -package os_query +package query import "github.com/fatih/structs" diff --git a/query_constant_score_test.go b/query_constant_score_test.go index c80136f..e361efe 100644 --- a/query_constant_score_test.go +++ b/query_constant_score_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/query_dis_max.go b/query_dis_max.go index 9f6cf9e..b32b9e2 100644 --- a/query_dis_max.go +++ b/query_dis_max.go @@ -1,4 +1,4 @@ -package os_query +package query import "github.com/fatih/structs" diff --git a/query_dis_max_test.go b/query_dis_max_test.go index e66c616..e57daf4 100644 --- a/query_dis_max_test.go +++ b/query_dis_max_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/query_match.go b/query_match.go index f0c22fc..09baac1 100644 --- a/query_match.go +++ b/query_match.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "github.com/fatih/structs" diff --git a/query_match_all.go b/query_match_all.go index bfa9843..8799e8b 100644 --- a/query_match_all.go +++ b/query_match_all.go @@ -1,4 +1,4 @@ -package os_query +package query import "github.com/fatih/structs" diff --git a/query_match_all_test.go b/query_match_all_test.go index da44c05..d09b7d7 100644 --- a/query_match_all_test.go +++ b/query_match_all_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/query_match_test.go b/query_match_test.go index d2de36e..5842ffd 100644 --- a/query_match_test.go +++ b/query_match_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/query_multi_match.go b/query_multi_match.go index f50dd1a..3d76e58 100644 --- a/query_multi_match.go +++ b/query_multi_match.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "github.com/fatih/structs" diff --git a/query_multi_match_test.go b/query_multi_match_test.go index 63029a8..16eaecc 100644 --- a/query_multi_match_test.go +++ b/query_multi_match_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/query_term_level.go b/query_term_level.go index 62293e2..0af77ea 100644 --- a/query_term_level.go +++ b/query_term_level.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "github.com/fatih/structs" diff --git a/query_term_level_test.go b/query_term_level_test.go index 9495991..a096c91 100644 --- a/query_term_level_test.go +++ b/query_term_level_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing" diff --git a/ranking.go b/ranking.go index f9d56fb..ce8ab59 100644 --- a/ranking.go +++ b/ranking.go @@ -1,4 +1,4 @@ -package os_query +package query func RankFeature(field string, rankFeatureType RankFeatureTypeInterface) *RankFeatureQuery { return &RankFeatureQuery{ diff --git a/ranking_test.go b/ranking_test.go index 77b20b5..4a635de 100644 --- a/ranking_test.go +++ b/ranking_test.go @@ -1,4 +1,4 @@ -package os_query +package query import "testing" diff --git a/search.go b/search.go index a4f03ac..81037f4 100644 --- a/search.go +++ b/search.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "bytes" diff --git a/search_test.go b/search_test.go index 1afcb61..be37d6b 100644 --- a/search_test.go +++ b/search_test.go @@ -1,4 +1,4 @@ -package os_query +package query import ( "testing"