Repository navigation
feat(openapi): add documented v30.2 search and multi_search params - #121
Open
haydenhoang wants to merge 2 commits into
Open
haydenhoang wants to merge 2 commits into
haydenhoang wants to merge 2 commits into
Conversation
Add the documented search params the server reads to MultiSearchParameters, which both the query string and each entry of searches[] use: analytics_tag, diversity_lambda, enable_highlight_v1, max_candidates, the nl_* params, split_join_tokens and synonym_sets. The server copies the query string into every search before applying that search's own params, so the params it reads only from the query string (collection, limit_multi_searches, conversation_stream) go in MultiSearchParameters too, next to the conversation params already there. Clients that unwrap MultiSearchParameters into query params or pass it as the query object pick them up without changes. MultiSearchCollectionParameters no longer repeats collection, which it now gets from MultiSearchParameters. remove_duplicates sits next to union in the body. Also drop a stray backtick in the split_join_tokens description, in SearchParameters and in the copy added here.
Add the documented params GET /collections/{collectionName}/documents/search
reads that SearchParameters lacked: analytics_tag, diversity_lambda and
nl_query_prompt_cache_ttl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
Adds the missing search params Typesense v30.2:
SearchParameters(GET /collections/{collectionName}/documents/search):analytics_tagdiversity_lambdanl_query_prompt_cache_ttlMultiSearchParameters(POST /multi_search, used by both the query string and each entry ofsearches[]):analytics_tag,diversity_lambda,enable_highlight_v1,max_candidates,split_join_tokens,synonym_setsnl_query,nl_model_id,nl_query_prompt_cache_ttlcollection,limit_multi_searches,conversation_streamMultiSearchSearchesParameter(the body):remove_duplicates, next tounionAlso
split_join_tokensdescription.MultiSearchCollectionParametersno longer declarescollectionitself. It still has it, throughallOffromMultiSearchParameters.Left out
The server also reads the following, but the v30.2 docs don't mention them. They're left out until they're documented:
rank_tokens_bydiversity_limitpersonalization_*search paramsconversation_streamon the single-search endpointPR Checklist