lucene - Ravendb retrieve all documents in collection for reporting -
i need retrieve documents collection dump excel file.
using seems work
var lucenequery = session.advanced.lucenequery<test.reduceresult>("test/bytestdata"); var enumerator = session.advanced.stream(lucenequery); var obj = new list<test.reduceresult>(); while (enumerator.movenext()) { obj.add(enumerator.current.document); }
this gives me results in index. instead of index want retrieve documents in collection (as index not contain information stored in document). how can done?
change query be:
var lucenequery = session.advanced.lucenequery<test.reduceresult>("raven/documentsbyentityname") .whereequals("tag", "customers");
this give customers.
Comments
Post a Comment