Is there a good indexing / search engine for Node.js? [closed]

删除回忆录丶 提交于 2019-11-29 18:56:40
Fergie

Just an update to my earlier answer - since there was so much discussion I didn't want this update to get lost.

You can download it here:

Yes, check out the newly released Norch

Norch is based on the search-index module for node.js, which is in turn based on Google's powerful levelDB index.

EDIT: Use the search-index module for fast "in-process" search capability.

Can you explain why you're not interested in using an external index? For full text search I always revert to using PostgreSQL's full text indexing capabilities - it's very fast, indexing doesn't require a full-index-update (like Solr does), and results are returned faster than Lucene based solutions (such as Elastic Search).

But if you really want to do it in-process, you probably want to look at Lunr: http://lunrjs.com/ - it does work in Node, not just in the browser.

Edit: Here's where I got my stats on Postgres being faster than Lucene: http://fr.slideshare.net/billkarwin/full-text-search-in-postgresql - see Slide 49.

Edit: Not sure what kind of speed you're looking at for in/out of process, but our PostgreSQL database can do 100k queries per second without breaking a sweat, and it's not even on SSDs. Perhaps you're over-thinking your performance needs - after all once you need to go to multiple nodes (or using cluster to take advantage of all CPUs) you will need to dump in-process anyway.

Full Text Search Light, is a pure in JS written node module for doing full text searches. Here you can find the current git repository link: https://github.com/frankred/node-full-text-search-light

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!