Skip to content

Releases: typesense/typesense-go

v3.1.0

18 Feb 16:03
01ce554
Compare
Choose a tag to compare

What's changed

  • v28 features are supported in this release: #192

v3.0.0

27 Jan 07:14
e8d8bcd
Compare
Choose a tag to compare

What's Changed

  • [Breaking Change] MultiSearchCollectionParameters.collection is now optional. Fixed issue #168.
searches := api.MultiSearchSearchesParameter{
	Searches: []api.MultiSearchCollectionParameters{
		{
			Q:          pointer.String("Company"),
			// before
			// Collection: "companies",
			Collection: pointer.Any("companies"),
		},
	},
}
  • [Breaking Change] Single document index methods now include an additional parameter to specify dirty values behavior.
client.Collection("companies").Documents().Create(context.Background(), document, &api.DocumentIndexParameters{DirtyValues: pointer.Any(api.CoerceOrDrop)})
client.Collection("companies").Documents().Upsert(context.Background(), document, &api.DocumentIndexParameters{DirtyValues: pointer.Any(api.CoerceOrDrop)})
client.Collection("companies").Document("123").Update(context.Background(), document, &api.DocumentIndexParameters{DirtyValues: pointer.Any(api.CoerceOrDrop)})
  • [Breaking Change] An additional parameter *api.ExportDocumentsParams allows control over export results.
client.Collection("companies").Documents().Export(context.Background(), &api.ExportDocumentsParams{
		FilterBy:      pointer.String("num_employees>:1000"),
		IncludeFields: pointer.String("name"),
		ExcludeFields: pointer.String("year"),
	})
  • [Breaking Change] The import Action type is now an enum instead of *string.
&api.ImportDocumentsParams{
	//	Action:    pointer.String("create"),
	Action:    pointer.Any(api.Create),
}
  • [Breaking Change] The Query and Match fields in override rules are now optional.
api.SearchOverrideRule{
    // before
    // Query: "apple",
    // Match: "exact",
    Query: pointer.String("apple"),
    Match: pointer.Any(api.Exact),
}
  • [Breaking Change] SearchParameters fields Q and QueryBy are now optional.
preset := &api.PresetUpsertSchema{}
preset.Value.FromSearchParameters(api.SearchParameters{
	Q: pointer.Any("company"),
	QueryBy: pointer.String("name"),
})

Features:

  • Added Analytics and Conversation APIs, updated override and search parameters.
  • Allowed embedding of separate API keys for each search in multi-search.
  • Added a generic pointer.Any() helper function that converts any type into a pointer. This is especially useful for parameters of enum types.
// before
var upsertAction api.IndexDocumentParamsAction = "upsert"
&api.IndexDocumentParams{
		Action:      &upsertAction,
}
// after
&api.IndexDocumentParams{
		Action:      pointer.Any(api.Upsert),
}

Fixes:

v2.0.0

22 Jul 11:02
8d55404
Compare
Choose a tag to compare
  • The q and query_by params are now optional and use pointer.String type, which is a backward incompatible change.
  • Support for preset API.
  • Client supports multi-node configuration for client side load balancing and fall-back.

v1.1.0

14 Jun 12:13
085368c
Compare
Choose a tag to compare

v1.0.0

02 Jan 11:00
732a427
Compare
Choose a tag to compare

v1 release in major.minor.patch format.

v1.0

22 Dec 13:36
732a427
Compare
Choose a tag to compare

There is a breaking change in the client interface that warranted a major version release:

See: Add context.Context to all functions

v0.9.0

15 Dec 14:31
Compare
Choose a tag to compare
  • Use interface type for group key.
  • Add SearchGroupedHit.Found param

v0.8.0

08 Aug 09:31
Compare
Choose a tag to compare
  • Fix group by support
  • Pull latest changes from openai client

v0.7.0

16 Jun 16:36
Compare
Choose a tag to compare
Fix ordering of keys in generated code.

v0.6.2

02 Dec 13:32
Compare
Choose a tag to compare
  • Using double for the stats field
  • Other openapi changes like supporting infix param etc.