Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to v3, pull latest oapi changes #190

Merged
merged 4 commits into from
Jan 27, 2025
Merged

Conversation

haydenhoang
Copy link
Contributor

@haydenhoang haydenhoang commented Jan 25, 2025

Change Summary

  • [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")
})
searches := api.MultiSearchSearchesParameter{
	Searches: []api.MultiSearchCollectionParameters{
		{
			Q:          pointer.String("Company"),
			// before
			// Collection: "companies",
			Collection: pointer.Any("companies"),
		},
	},
}

PR Checklist

Fixes typesense#147
Fix analytics tests in typesense v27.1
Test breaking changes:
- Synonym, Override, Apikey delete endpoints now return only its id.
- `SearchParameters` fields `Q` and `QueryBy` are now pointers
- Fixed typesense#168
- Allow embedding of separate api key for each search in multi-search
@haydenhoang haydenhoang changed the title Pull latest oapi changes Bump to v3, pull latest oapi changes Jan 27, 2025
@kishorenc kishorenc merged commit e8d8bcd into typesense:master Jan 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants