Nodejs Search Engine

135 views
Skip to first unread message

Duy Nguyen

unread,
Apr 17, 2016, 9:30:43 AM4/17/16
to nod...@googlegroups.com
Hi,

I'm working on my side project using FeathersJS(feathersjs.com) framework. As design I need to create full text Search service, can anyone share your experience which Search engine is good for you with pros and cons?

I'm using mongodb btw.

Thanks,
--
Nguyen Hai Duy
Mobile : 0914 72 1900
Skype: nguyenhd2107

Charly Román

unread,
Apr 18, 2016, 5:38:39 PM4/18/16
to nod...@googlegroups.com
You can use Elasticsearch with node. It's fast and well documented.

Charly Román
Software Developer
http://croman.mx

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAGOR8-0WB7kwp0E%3DPxYhNDr6PGwNNazMgH3nhXBEZvqmKLUcRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Matt

unread,
Apr 18, 2016, 8:44:08 PM4/18/16
to nod...@googlegroups.com
I sometimes wonder if people even try and google their problems these days...

Fifth entry on the first page for "mongodb full text search": https://www.compose.io/articles/full-text-search-with-mongodb-and-node-js/

Duy Nguyen

unread,
Apr 19, 2016, 12:34:10 PM4/19/16
to nod...@googlegroups.com

Seems I didn't explain clearly my need, so it caused some problems, my intention is that I want to know who had built any  search engine plugin to work with featherjs framework, so I can use it without much effort to setup.

As you can see here, featherjs supported some built-in modules allow you to interact with stripe or twilio easily, but not any module for search.

I'm working on POC, so built-in plugin is much more helpful than independent solution like ElasticSearch. Full text search by mongodb is second option also.

Anw, thanks guys for you help, and hope I explained clearly my need :)

Thanks,



For more options, visit https://groups.google.com/d/optout.

Joshua Holbrook

unread,
Apr 19, 2016, 3:11:15 PM4/19/16
to nod...@googlegroups.com
I don't know much about featherjs, but maybe it wouldn't be so bad to
write your own plugin?

Regarding implementation details: Definitely use an external server
like solr or elasticsearch, because writing something like lucene is
relatively hard.

--Josh
> https://groups.google.com/d/msgid/nodejs/CAGOR8-0_QXjqh0cfnSdq5d%2BTPHPbR7BSHbkRmA-iMutHekhvWA%40mail.gmail.com.

Peter Rust

unread,
Apr 20, 2016, 4:18:47 PM4/20/16
to nodejs
If it's just a proof-of-concept, it may be simpler to use something embedded like sqlite's Full Text Search, than firing off requests to a different process or different server. Note that a SQLite approach won't scale (at least, not without a significant amount of forethought, planning, sharding, etc), but for a proof-of-concept it can be a good choice.

You can install node's sqlite module (https://github.com/mapbox/node-sqlite3) by doing `npm install sqlite3`. By default it includes SQLite's FTS3 and FTS4. There's an example of how to use fts4 here: https://github.com/mapbox/node-sqlite3/blob/master/test/fts-content.test.js. And you'll want to read at least the beginning of the FTS3-4 docs: https://www.sqlite.org/fts3.html.

Regarding feathers.js integration, you could look at the feathers knex or sequelize modules and see if their sqlite support is helpful. That said, those kinds of query-builders are usually focused on relational database access, so I don't know if they would be helpful with Full Text Search or if they would just get in the way. You may be better off just doing it manually. While you're at it, you could look at the mongo/mongoose modules to see if they expose mongo's Full Text Search capabilities.

-- peter
Reply all
Reply to author
Forward
0 new messages