Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 89 additions & 5 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3089,6 +3089,12 @@ components:
description: The ID of the natural language model to use.
type: string

nl_query_prompt_cache_ttl:
description: >
How long (in seconds) the collection schema prompt sent to the natural language
model is cached. Default: 86400.
type: integer

query_by_weights:
description:
The relative weight to give each `query_by` field when ranking results.
Expand Down Expand Up @@ -3284,6 +3290,11 @@ components:
type: boolean
default: true

analytics_tag:
description: >
A tag recorded with the analytics events this search query generates.
type: string

snippet_threshold:
description: >
Field values under this length will be fully highlighted, instead of showing
Expand Down Expand Up @@ -3384,7 +3395,7 @@ components:
description: >
Treat space as typo: search for q=basket ball if q=basketball is not found or vice-versa.
Splitting/joining of tokens will only be attempted if the original query produces no results.
To always trigger this behavior, set value to `always``.
To always trigger this behavior, set value to `always`.
To disable, set value to `off`. Default is `fallback`.
type: string

Expand Down Expand Up @@ -3526,6 +3537,12 @@ components:
description: >
The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM.
type: string
diversity_lambda:
description: >
Balances relevance against diversity when a matching curation rule diversifies results:
1 ranks purely by relevance, 0 purely by diversity. Values outside 0 to 1 fall back to the default.
Default: 0.5.
type: number

MultiSearchParameters:
description: >
Expand All @@ -3543,6 +3560,20 @@ components:
against. Multiple fields are separated with a comma.
type: string

nl_query:
description: Whether to use natural language processing to parse the query.
type: boolean

nl_model_id:
description: The ID of the natural language model to use.
type: string

nl_query_prompt_cache_ttl:
description: >
How long (in seconds) the collection schema prompt sent to the natural language
model is cached. Default: 86400.
type: integer

query_by_weights:
description:
The relative weight to give each `query_by` field when ranking results.
Expand Down Expand Up @@ -3723,6 +3754,13 @@ components:
Default: `</mark>`
type: string

enable_highlight_v1:
description: >
Flag for enabling/disabling the deprecated, old highlight structure in the response.
Default: true
type: boolean
default: true

snippet_threshold:
description: >
Field values under this length will be fully highlighted, instead of showing
Expand Down Expand Up @@ -3758,13 +3796,23 @@ components:
description: >
If you have some synonyms defined but want to disable all of them for a particular search query, set enable_synonyms to false. Default: true

synonym_sets:
type: string
description: List of synonym set names to associate with this search query
example: "synonym_set_1,synonym_set_2"

enable_analytics:
description: >
Flag for enabling/disabling analytics aggregation for specific search
queries (for e.g. those originating from a test script).
type: boolean
default: true

analytics_tag:
description: >
A tag recorded with the analytics events this search query generates.
type: string

synonym_prefix:
type: boolean
description: >
Expand Down Expand Up @@ -3822,6 +3870,14 @@ components:
documents found only through vector search will get a text match score.
default: false

split_join_tokens:
description: >
Treat space as typo: search for q=basket ball if q=basketball is not found or vice-versa.
Splitting/joining of tokens will only be attempted if the original query produces no results.
To always trigger this behavior, set value to `always`.
To disable, set value to `off`. Default is `fallback`.
type: string

pre_segmented_query:
description: >
You can index content from any logographic language into Typesense if you
Expand Down Expand Up @@ -3852,6 +3908,11 @@ components:
type: boolean
default: true

max_candidates:
description: >
Control the number of words that Typesense considers for typo and prefix searching.
type: integer

prioritize_token_position:
description: >
Make Typesense prioritize documents where the query words appear earlier in the text.
Expand Down Expand Up @@ -3961,12 +4022,33 @@ components:
description: >
The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM.
type: string
conversation_stream:
description: >
When `conversation` is true, streams the response as server-sent events.
Only read from the query string.
type: boolean
collection:
description: >
The collection to search in. In the query string, it applies to each search
that doesn't name its own.
type: string
limit_multi_searches:
description: >
Maximum number of searches the request may contain. A value embedded in a scoped API key
overrides it. Only read from the query string. Default: 50.
type: integer
validate_field_names:
description: >
Controls whether Typesense should validate if the fields exist in the schema.
When set to false, Typesense will not throw an error if a field is missing.
This is useful for programmatic grouping where not all fields may exist.
type: boolean
diversity_lambda:
description: >
Balances relevance against diversity when a matching curation rule diversifies results:
1 ranks purely by relevance, 0 purely by diversity. Values outside 0 to 1 fall back to the default.
Default: 0.5.
type: number

MultiSearchSearchesParameter:
type: object
Expand All @@ -3977,6 +4059,12 @@ components:
type: boolean
default: false
description: When true, merges the search results from each search query into a single ordered set of hits.
remove_duplicates:
type: boolean
default: true
description: >
When `union` is true, keeps only the highest-ranked hit of a document that more than one search returns.
Ignored when the searches use `group_by`.
searches:
type: array
items:
Expand All @@ -3986,10 +4074,6 @@ components:
- $ref: "#/components/schemas/MultiSearchParameters"
- type: object
properties:
collection:
type: string
description: >
The collection to search in.
x-typesense-api-key:
type: string
description: A separate search API key for each search within a multi_search request
Expand Down
Loading