Making CouchDB more searchable and realtime
I am having problems figuring out how to use CouchDB best in my scenario (or find another solution which is more suitable). This is an overview of what is needed and I hope I can gain better insight into开发者_如何学JAVA what I need:
- The system is based almost entirely on keywords.
- Each document has an array of keywords.
- I need to be able to search and return the documents based on keywords.
- I also need to be able to search and return documents based on an incremental ID number (eg, all docs with keywords "test OR more" since document id:1318814)
- It all needs to be able to handle hundreds of thousands of documents, realtime updates to keywords and would preferably have not much lag (eg, CouchDB view generation so input to being able to output it to a dynamically generated query would only take a few seconds at most).
Would this be possible to do in CouchDB? Are there any good extensions to CouchDB which would allow me to do this?
Edit: I'm using PHP to connect to the database and Java to feed info into the database.
This is why I wrote CouchDB-Lucene.
https://github.com/rnewson/couchdb-lucene
精彩评论