ObjectFS storage wrapper for Apache Solr.
// Find all documents matching "term":
var solr = require("ofs-solr");
feeds.connect({scheme:"solr",uri:"solr://localhost:8983/solr/"});
for each (var doc in solr.iterate("term")) {
print("Matching document:", uneval(doc));
}
void | connect (URI) | Configures module instance for specific Solr server. |
Object | read (ID) | Read one document from Solr server. |
void | write (ID, record) | Save one record on Solr server. |
void | remove (ID) | Remove one document on Solr server. |
Iterator | iterate (filter, options) | A generator function that returns an iterator over all documents matching filter. |
Array | list (filter, options) | Returns an Array of documents matching the filter. |
- RingoJS v0.8
This is free software, and you are welcome to redistribute it under certain conditions; see LICENSE.txt for details.
Emilis Dambauskas [email protected], http://emilis.github.com/