Skip to content

Commit

Permalink
ESFF-2633: rename module to os-query
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmitharoo committed Apr 15, 2024
1 parent 6beb440 commit 9ed1367
Show file tree
Hide file tree
Showing 42 changed files with 46 additions and 44 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/).**
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion aggregations_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion aggs_bucket.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

//----------------------------------------------------------------------------//

Expand Down
2 changes: 1 addition & 1 deletion aggs_filter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

type FilterAggregation struct {
name string
Expand Down
2 changes: 1 addition & 1 deletion aggs_filter_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "testing"

Expand Down
2 changes: 1 addition & 1 deletion aggs_metric.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "github.com/fatih/structs"

Expand Down
2 changes: 1 addition & 1 deletion aggs_metric_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "testing"

Expand Down
2 changes: 1 addition & 1 deletion aggs_nested.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

type NestedAggregation struct {
name string
Expand Down
2 changes: 1 addition & 1 deletion aggs_nested_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "testing"

Expand Down
2 changes: 1 addition & 1 deletion common.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion count.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion count_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "testing"

Expand Down
2 changes: 1 addition & 1 deletion custom.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"github.com/opensearch-project/opensearch-go/v2"
Expand Down
2 changes: 1 addition & 1 deletion custom_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "testing"

Expand Down
2 changes: 1 addition & 1 deletion delete.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"bytes"
Expand Down
6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/deliveroo/os_query
module github.com/deliveroo/os-query

go 1.21
go 1.22

toolchain go1.22.2

require (
github.com/fatih/structs v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion highlight.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"github.com/fatih/structs"
Expand Down
2 changes: 1 addition & 1 deletion highlight_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion noopMappable.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

type noopMappable struct{}

Expand Down
2 changes: 1 addition & 1 deletion os.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion os_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion queries_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion query_boolean.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "github.com/fatih/structs"

Expand Down
2 changes: 1 addition & 1 deletion query_boolean_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion query_boosting.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion query_boosting_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion query_constant_score.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "github.com/fatih/structs"

Expand Down
2 changes: 1 addition & 1 deletion query_constant_score_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion query_dis_max.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "github.com/fatih/structs"

Expand Down
2 changes: 1 addition & 1 deletion query_dis_max_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion query_match.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"github.com/fatih/structs"
Expand Down
2 changes: 1 addition & 1 deletion query_match_all.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "github.com/fatih/structs"

Expand Down
2 changes: 1 addition & 1 deletion query_match_all_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion query_match_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion query_multi_match.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"github.com/fatih/structs"
Expand Down
2 changes: 1 addition & 1 deletion query_multi_match_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion query_term_level.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"github.com/fatih/structs"
Expand Down
2 changes: 1 addition & 1 deletion query_term_level_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion ranking.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

func RankFeature(field string, rankFeatureType RankFeatureTypeInterface) *RankFeatureQuery {
return &RankFeatureQuery{
Expand Down
2 changes: 1 addition & 1 deletion ranking_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import "testing"

Expand Down
2 changes: 1 addition & 1 deletion search.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion search_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package os_query
package query

import (
"testing"
Expand Down

0 comments on commit 9ed1367

Please sign in to comment.