Skip to content

Commit

Permalink
Fix import paths for Go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
olivere committed Mar 30, 2019
1 parent d05affb commit 497ac90
Show file tree
Hide file tree
Showing 92 changed files with 91 additions and 397 deletions.
2 changes: 1 addition & 1 deletion bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"fmt"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// BulkService allows for batching bulk requests and sending them to
Expand Down
2 changes: 1 addition & 1 deletion cat_aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// CatAliasesService shows information about currently configured aliases
Expand Down
2 changes: 1 addition & 1 deletion cat_allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// CatAllocationService provides a snapshot of how many shards are allocated
Expand Down
2 changes: 1 addition & 1 deletion cat_count.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// CatCountService provides quick access to the document count of the entire cluster,
Expand Down
2 changes: 1 addition & 1 deletion cat_indices.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// CatIndicesService returns the list of indices plus some additional
Expand Down
9 changes: 2 additions & 7 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import (

"github.com/pkg/errors"

"github.com/olivere/elastic/config"
"github.com/olivere/elastic/v7/config"
)

const (
// Version is the current version of Elastic.
Version = "6.2.16"
Version = "7.0.0"

// DefaultURL is the default endpoint of Elasticsearch on the local machine.
// It is used e.g. when initializing a new Client without a specific URL.
Expand Down Expand Up @@ -1560,11 +1560,6 @@ func (c *Client) RolloverIndex(alias string) *IndicesRolloverService {
return NewIndicesRolloverService(c).Alias(alias)
}

// TypeExists allows to check if one or more types exist in one or more indices.
func (c *Client) TypeExists() *IndicesExistsTypeService {
return NewIndicesExistsTypeService(c)
}

// IndexStats provides statistics on different operations happining
// in one or more indices.
func (c *Client) IndexStats(indices ...string) *IndicesStatsService {
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/fortytw2/leaktest"

"github.com/olivere/elastic/config"
"github.com/olivere/elastic/v7/config"
)

func findConn(s string, slice ...*conn) (int, bool) {
Expand Down
2 changes: 1 addition & 1 deletion cluster_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// ClusterHealthService allows to get a very simple status on the health of the cluster.
Expand Down
2 changes: 1 addition & 1 deletion cluster_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// ClusterStateService allows to get a comprehensive state information of the whole cluster.
Expand Down
2 changes: 1 addition & 1 deletion cluster_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// ClusterStatsService is documented at
Expand Down
2 changes: 1 addition & 1 deletion count.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// CountService is a convenient service for determining the
Expand Down
2 changes: 1 addition & 1 deletion delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/http"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// DeleteService allows to delete a typed JSON document from a specified
Expand Down
2 changes: 1 addition & 1 deletion delete_by_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// DeleteByQueryService deletes documents that match a query.
Expand Down
2 changes: 1 addition & 1 deletion exists.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/http"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// ExistsService checks for the existence of a document using HEAD.
Expand Down
2 changes: 1 addition & 1 deletion explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// ExplainService computes a score explanation for a query and
Expand Down
2 changes: 1 addition & 1 deletion field_caps.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// FieldCapsService allows retrieving the capabilities of fields among multiple indices.
Expand Down
2 changes: 1 addition & 1 deletion get.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// GetService allows to get a typed JSON document from the index based
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ require (
github.com/golang/mock v1.2.0 // indirect
github.com/google/go-cmp v0.2.0
github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe
github.com/olivere/elastic v6.2.16+incompatible
github.com/opentracing/opentracing-go v1.1.0
github.com/pkg/errors v0.8.1
github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9
go.opencensus.io v0.19.2
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
)
2 changes: 1 addition & 1 deletion index.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// IndexService adds or updates a typed JSON document in a specified index,
Expand Down
2 changes: 1 addition & 1 deletion indices_analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// IndicesAnalyzeService performs the analysis process on a text and returns
Expand Down
2 changes: 1 addition & 1 deletion indices_close.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// IndicesCloseService closes an index.
Expand Down
2 changes: 1 addition & 1 deletion indices_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"errors"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// IndicesCreateService creates a new index.
Expand Down
2 changes: 1 addition & 1 deletion indices_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// IndicesDeleteService allows to delete existing indices.
Expand Down
2 changes: 1 addition & 1 deletion indices_delete_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// IndicesDeleteTemplateService deletes index templates.
Expand Down
2 changes: 1 addition & 1 deletion indices_exists.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/url"
"strings"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// IndicesExistsService checks if an index or indices exist or not.
Expand Down
2 changes: 1 addition & 1 deletion indices_exists_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/http"
"net/url"

"github.com/olivere/elastic/uritemplates"
"github.com/olivere/elastic/v7/uritemplates"
)

// IndicesExistsTemplateService checks if a given template exists.
Expand Down
Loading

0 comments on commit 497ac90

Please sign in to comment.