Skip to content

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