GravityProject / gravity

Open source social network built with Meteor
MIT License
131 stars 62 forks source link

Refers to issue #58 Search Users #60

Closed mohsalsaleem closed 9 years ago

mohsalsaleem commented 9 years ago

A search page with search functionality which can search for users with their . This page can replace the browse users page.

nchenbang commented 9 years ago

This matteodem/meteor-easy-search package might be an interesting solution for all pagination and searching functionalities in this project.

pmuens commented 9 years ago

Are there any better approaches available? What about a MongoDB full text search like it's implemented for searching for posts?

mohsalsaleem commented 9 years ago

How about search source by Meteor hacks ?

nchenbang commented 9 years ago

If I'm not mistaken, search source is using MongoDB regular expression queries for text search which is not an ideal solution in terms of performance.

About the easy search, you can actually use MongoDB full text search in it by selecting the MongoTextIndex engine. I think easy search is more of a full solution that covers not only the text search, but also functionalities like blaze components, paginations and autosuggest. Well, all these stuffs can be done manually even without easy search so I guess the choice depends on whether you want to rely on a third party package or do all the piping yourself.

pmuens commented 9 years ago

IMHO I think the less third party packages, the better. But I have no experience with easysearch so far. Perhaps it's a good solution we can use everywhere.

nchenbang commented 9 years ago

I think I'm agree with you here, it's bad to have too much dependency on third party packages.

mohsalsaleem commented 9 years ago

Yeah.. I agree. I'll try implementing MongoDB full text search.

Mohamed Saleem. H On Nov 18, 2015 1:10 PM, "NgoChenBang" notifications@github.com wrote:

I think I'm agree with you here, it's bad to have too much dependency on third party packages.

— Reply to this email directly or view it on GitHub https://github.com/GravityProject/gravity/pull/60#issuecomment-157633491 .

pmuens commented 9 years ago

Great! I've implemented something similar with posts. Here's the commit @mohsalsaleem 77eb4cabfd0b1b35da22cbe01620b01d2e96ce4a