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

Unable to Search by last characters of the string #2612

Closed
faisalalidev opened this issue Jul 14, 2022 · 2 comments
Closed

Unable to Search by last characters of the string #2612

faisalalidev opened this issue Jul 14, 2022 · 2 comments
Labels
feature request & feedback Go to https://github.com/meilisearch/product/ support Issues related to support questions

Comments

@faisalalidev
Copy link

Describe the bug
I have a field name vin_number and I want to search by the last 4 digits but Its unable to search Its only return records based on the first set of digits that match the vin_number.
It should have return records by matching last digits of vin_number.

@MathiasWeisheit
Copy link

I have the same problem. "businessconsulting" will not be found with the search word "consulting".
I had implemented a dual search. One with meilisearch and one with "database-like-search". And then I combine the results.
But it will be much better, if meilisearch can do this.

@curquiza
Copy link
Member

Hello @MathiasWeisheit and @faisalalidev

This behavior is expected. Indeed Meilisearch is designed currently to perform a search-as-you-type experience, so using the prefix-search.
More information about the prefix search in our documentation

However, we have opened a discussion in our product repo to gather user feedback regarding this need. It would be really appreciated if you take the time to describe why your usecase in detail in this discussion, it would be definitely helpful.

The workaround currently, if possible, is to put a space between your digits. Same, write business consulting instead of businessconsulting.

I've already added this issue to the discussion description, so I close this issue in favor of meilisearch/product#492

@curquiza curquiza added feature request & feedback Go to https://github.com/meilisearch/product/ support Issues related to support questions labels Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request & feedback Go to https://github.com/meilisearch/product/ support Issues related to support questions
Projects
None yet
Development

No branches or pull requests

3 participants