Skip to content

feat: can disable typesense prefix #931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2025

Conversation

Barbapapazes
Copy link
Contributor

Hello 👋,

Typesense offers semantic search capabilities using embeddings. However, the prefix search option is not compatible with vector (embedding-based) search. This PR enables users to set the prefix option to false when performing a vector search.

Relevant documentation: https://typesense.org/docs/29.0/api/search.html#query-parameters:~:text=Indicates%20that%20the,for%20all%20fields).

Current error when using vector search with prefix set to true:

Prefix search is not supported for remote embedders. Please set `prefix=false` as an additional search parameter to disable prefix searching.

Copy link
Contributor

@tharropoulos tharropoulos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't directly approve of changes here, but it looks right

@Barbapapazes
Copy link
Contributor Author

I was wondering why the parameters array couldn't be merged with the one in the configuration to avoid to add manually every parameters from typesense while being future proof?

@taylorotwell taylorotwell merged commit 2d9f852 into laravel:10.x Jul 20, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants