Paratii-Video / paratii-player

Probably the world's 1st in-player token wallet (v0.0.1 of the Paratii embeddable web player).
http://paratii.video
GNU General Public License v3.0
41 stars 11 forks source link

Search works just if match keyword perfectly, we want something flexible #324

Closed geckoslair closed 7 years ago

geckoslair commented 7 years ago

ref: #292

jrgarou commented 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.

geckoslair commented 7 years ago

Hi @jrgarou! Can you create a new issue? This is about keyword matching. BTW, yes!

jellegerbrandy commented 7 years ago

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.*/})
geckoslair commented 7 years ago

@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.

jellegerbrandy commented 7 years ago

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 .

geckoslair commented 7 years ago

waiting for deploy

geckoslair commented 7 years ago

deployed