Closed geckoslair closed 7 years ago
@enricocicconi the showPagination
returns true when the keywords
from search wasn't undefined: https://github.com/Paratii-Video/paratii-player/blob/dev/imports/ui/pages/search/search.js#L94
Could we just show the pagination when videos.length > Meteor.settings.public.paginationStep
or something like that?
The video.fetch returns 6 paged videos and totalVideos always return undefined.
Hi @jrgarou! Can you create a new issue? This is about keyword matching. BTW, yes!
Use a regexp matched to the beginning of the word. According to this:https://stackoverflow.com/questions/3305561/how-to-query-mongodb-with-like
something liek this shoudl work:
db.users.find({"name": /m.*/})
@jellegerbrandy from what I've understood in order to have score system we need to use the $search sintax. but $search syntax support just string and not regex.
Ah yes. Well. We have 50 vids. Lets thunk about scoring once we have 10000
On Nov 27, 2017 8:05 PM, "Geckoslair" notifications@github.com wrote:
@jellegerbrandy https://github.com/jellegerbrandy from what I understand in order to have score system we need to user $search sintax. but $search syntax support just string and not regex.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Paratii-Video/paratii-player/issues/324#issuecomment-347290199, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPuPbE8nndJFXXYx7WWYna9YHJv5ejNks5s6wfjgaJpZM4QqBbA .
waiting for deploy
deployed
ref: #292