docs-site/content/0.22.1/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 version v0.22.1 fixes some important bugs in the recently released v0.22.0.
The changelog below contains aggregates all the changes between v0.21.0 and v0.22.x.
token_separators configuration
during schema creation. These characters are then used as word separators, in addition to space and new-line characters.symbols_to_index configuration during schema creation.filter_by clause that can apply filters dynamically to query rules defined in the override.use_cache and cache_ttl parameters. By default, caching is disabled.search_cutoff_ms parameter that attempts to return results early when the cutoff time has elapsed. This is not a strict guarantee and facet computation is not bound by this parameter.precision sorting option to geo fields. This will bucket geo points into "groups" determined by the given precision value, such that points that fall within the same group are treated as equal, and the next sorting field can be considered for ranking.exhaustive_search parameter. Setting ?exhaustive_search=true will make Typesense consider all prefixes and typo corrections of the words in the query without stopping early when enough results are found (drop_tokens_threshold and typo_tokens_threshold configurations are ignored).:= operator) no longer requires the field to be facetable.min_len_1typo and min_len_2typo parameters. Defaults are 4 and 7 respectively.id in filter_by query.auto for a field whose name does not contain a regular expression.auto type instead of respecting the schema type.filter_by condition: documents were being duplicated..*) field is present in the collection schema.v0.22, the data directory cannot be used with
v0.21.0 binary again. So, please take a snapshot/backup of the data directory before upgrading.drop_tokens_threshold and typo_tokens_threshold now default to a value of 1.
If you were relying on the earlier defaults (10 and 100 respectively), please set these parameters explicitly.min_len_1typo and min_len_2typo parameters to customize these default values.id field cannot be part of the collection schema anymore. You can filter on the implicit id field (via filter_by)
but it cannot be queried upon (via q and query_by). If you wish to search on an identifier, you can define a
custom field name like _id and use that.Before upgrading your existing Typesense cluster to v{{ $page.typesenseVersion }}, please review the behavior changes above to prepare your application for the upgrade.
To upgrade a multi-node cluster, we will be proceeding node by node.
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 |
:::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. :::
If you need to downgrade back to v0.21.0 of Typesense for any reason, we've published a patched version v0.21.1 with some backported changes that allow a v0.21 node to be started on a data directory that was previously upgraded by a v0.22.1 upgrade. The other option is to clear the data directory (which will wipe out all data), install a previous version afresh and then re-index your data.