docs-site/content/0.24.0/api/README.md
This section of the documentation details all the API Endpoints available in Typesense and all the parameters you can use with them.
Use the links on the side navigation bar to get to the appropriate section you're looking for.
To learn how to install and run Typesense, see the Guide section instead.
This release contains new features, performance improvements and important bug fixes.
enable_nested_fields
option during collection creation.is_premium: true || (price:> 100 && category: shoes) is now possible.locale flag in the collection schema.sort_by clause can now accept an expression whose result is used for sorting, e.g.
sort_by=_eval(brand:nike):desc,_text_match:desc.text_match_type parameter that allows you to customize how multi-field text relevancy score is computed.highlight in the JSON response.stop_processing flag (default is true).locale and symbols_to_index options during synonym creation.replace_query option.effective_from_ts and effective_to_ts options.filter_by rule in overrides.--skip-writes flag for starting Typesense in a mode that does not read writes from the Raft log. This is
useful when the server has crashed due to some recent bad writes that you want to skip over temporarily.--memory-used-max-percentage and --disk-used-max-percentage flags for preventing writes when a specified
memory/disk threshold is breached.ids to be returned in the import response via
the return_doc and return_id options.POST /operations/db/compact end-point.logrotate.search_cutoff_ms is now 30000, i.e. 30 seconds. If you wish to allow searches to run
longer than that, you can pass a higher value as a search parameter.highlights key in the response is deprecated (but is still returned for now). Use the new highlight
object in the response for highlighting information.text_match key in the response is deprecated (but is still returned for now) in favor of the
new text_match_info object that returns fine grain matching information, including the score.Before upgrading your existing Typesense cluster to v{{ $page.typesenseVersion }}, please review the behavior changes above to prepare your application for the upgrade.
We'd recommend testing on your development / staging environments before upgrading.
If you're on Typesense Cloud:
If you're self-hosting Typesense, here's how to upgrade:
To upgrade a multi-node cluster, we will be proceeding node by node to ensure the cluster remains healthy during the rolling upgrade.
NOTE: During the upgrade, we have to ensure that the leader of the cluster is using the older Typesense version.
So we will upgrade the leader last. You can determine whether a node is a leader or follower by the value of the state
field in the /debug end-point response.
| State | Role |
|---|---|
| 1 | LEADER |
| 4 | FOLLOWER |
/health should return healthy).:::tip This documentation itself is open source. If you find any issues, click on the Edit page button at the bottom of the page and send us a Pull Request. :::
<RedirectOldLinks />