The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
## What's Changed
* Updates for Typesense v0.25.x by @willtempleton in https://github.com/typesense/typesense-swift/pull/30
**Full Changelog**: https://github.com/typesense/typesense-swift/compare/v0.1.2...v0.2.0
## Add Provision to extract value of MatchedTokens
I honestly didn't realise this was missed earlier 😅 but it's here now. You can access the values stored in your `StringQuantum` type by using:
- `yourStringQuantum.arrStr` to get a an array of strings type of matched tokens.
- `yourStringQuantum.arrArrStr` to get a an array of array of strings type of matched tokens.
This will return an optional because they both (arrStr and arrArrStr) can't exist at the same time. Resolves #16
## MultiSearch is here to typesense-swift!!
With this release of typesense-swift, you can perform multi-search across many different collections! You can achieve this with simple steps:
```swift
//Specify individual request parameters collection-wise
let searchRequests = [
MultiSearchCollectionParameters(q: "shoe", filterBy: "price:=[50..120]", collection: "products"),
MultiSearchCollectionParameters(q: "Nike", collection: "brands"),
]
//Specify common search parameters
let commonParams = MultiSearchParameters(queryBy: "name")
//data is of type MultiSearchResult<Product>
let (data, _) = try await client.multiSearch().perform(
searchRequests: searchRequests,
commonParameters: commonParams,
for: Product.self
)
```
Typesense Swift Beta
2 years ago
# typesense-swift beta is finally here 🎉
You can now plug typesense-swift right into your iOS app/package and start using it!
> typesense-swift supports iOS 13.0 and above.
### Features added
- Authenticating the Typesense client
- Ability to create, modify, delete and read (CRUD) collections
- CRUD for documents
- Import/Export documents in batch
- Search documents using search parameters
- CRUD for API Keys
- CRUC for collection aliases
- CRUD for search synonyms
- Control cluster operations