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

Numbers #3

Open
AbdybaevAE opened this issue Aug 2, 2016 · 2 comments
Open

Numbers #3

AbdybaevAE opened this issue Aug 2, 2016 · 2 comments

Comments

@AbdybaevAE
Copy link

My problem is when mongoose-searchable performs keywordize function, it's automatically cut numbers, so if i have this string "ravenol hse 0w-30" keywordize process would divide it on ["ravenol", "hse", "w-"]...
Also when i use Model.search functions, it's not called on numbers...

Is there some solution?
Best regards, Azamat.

@lykmapipo
Copy link
Owner

@AbdybaevAE

The default behaviour is to remove Number. Unless we alter the flow.
I will appreciate a pull request.

@AbdybaevAE
Copy link
Author

Okay.
Is it possible to populate some fields?
for example :
Book
.search('love')
.populate('comments')
.exec(function(err,books){
// some code
});

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