It's pretty curious that there isn't a go-to solution for a small-scale (but scalable) full-text search engine (FTS) unless you are using Postgresql or MySQL for your project to begin with.
My current CMS pet project uses a document database (PouchDB with CouchDB or LevelDB as the backend) and I need something "external" to it. So far, I tried:
- Lunrjs (memory only index, good queries, no dynamic insert/update)
- Flexsearch (memory only index, bad queries, super fast)
- Minisearch (memory only index, fuzzy search, per-field boosting)
- Sqlite FTS5 (index on the file system, easy to mantain, no real security, content must be fully copied in the fts index, stemming is only for English)
- Couchdb's Closeau engine (it's Lucene, hence requires Java. Nope)
I am a bit stuck now because there is not one solution to serve me well. My requirements:
- index on disk, not memory
- content indexed but not copied (for security and access concerns)
- full text queries, but nothing insanely powerful (booleans, basically)
- a Porter stemmer for at least a handful of languages, not just English
- per-field boosting, not on words - because "title" is more important than "content"
- should scale well from a single user "knowledge base" system (10s of docs) to a company's own documentation platform (1000s of docs). That also means that ease of installation and maintenance is also extremely important: I don't want to ask people to install postgresql if I give them a simpler solution for the content itself (LevelDB)
Any idea?
#softwareengineering #fulltextsearch #cms #documentmodel
Originally posted on LinkedIn.