diff options
Diffstat (limited to 'vendor/gopkg.in/olivere/elastic.v5/indices_put_alias_test.go')
-rw-r--r-- | vendor/gopkg.in/olivere/elastic.v5/indices_put_alias_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/gopkg.in/olivere/elastic.v5/indices_put_alias_test.go b/vendor/gopkg.in/olivere/elastic.v5/indices_put_alias_test.go index 82ab6a07b..ada1dfdef 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/indices_put_alias_test.go +++ b/vendor/gopkg.in/olivere/elastic.v5/indices_put_alias_test.go @@ -25,18 +25,18 @@ func TestAliasLifecycle(t *testing.T) { tweet3 := tweet{User: "olivere", Message: "Another unrelated topic."} // Add tweets to first index - _, err = client.Index().Index(testIndexName).Type("tweet").Id("1").BodyJson(&tweet1).Do(context.TODO()) + _, err = client.Index().Index(testIndexName).Type("doc").Id("1").BodyJson(&tweet1).Do(context.TODO()) if err != nil { t.Fatal(err) } - _, err = client.Index().Index(testIndexName).Type("tweet").Id("2").BodyJson(&tweet2).Do(context.TODO()) + _, err = client.Index().Index(testIndexName).Type("doc").Id("2").BodyJson(&tweet2).Do(context.TODO()) if err != nil { t.Fatal(err) } // Add tweets to second index - _, err = client.Index().Index(testIndexName2).Type("tweet").Id("3").BodyJson(&tweet3).Do(context.TODO()) + _, err = client.Index().Index(testIndexName2).Type("doc").Id("3").BodyJson(&tweet3).Do(context.TODO()) if err != nil { t.Fatal(err) } |