Skip to content
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

Prefix has no effect on the results #134

Open
tzervou opened this issue Sep 16, 2022 · 1 comment
Open

Prefix has no effect on the results #134

tzervou opened this issue Sep 16, 2022 · 1 comment

Comments

@tzervou
Copy link

tzervou commented Sep 16, 2022

I'm looking for a way to configure my queries in order to show results that are a phrase prefix match or otherwise startswith. I tried setting the prefix parameter to true, but the quality of the results remains the same. The version I'm using: "typesense": "^1.4.0".
Is there another way to configure the query to get such results?
let searchParameters = {
q: input,
query_by: 'name',
per_page: 5,
highlight_fields: false,
prefix: true,
};

@jasonbosco
Copy link
Member

Prefix search is set to true by default, so you don't have to explicitly enable it.

Could you share an example of a search query and a document you expect that to return from your dataset?

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

No branches or pull requests

2 participants