在 Raven DB 中,使用 rest api 我可以使用以下方法获取特定集合的所有文档(按实体名称分组的相关文档):
//Get all documents from a collection
http://localhost:8080/databases/{MyDatabase}/indexes/dynamic/{MyEntity}
自给定 etag 以来,我可以使用以下命令获取所有新/更新的文档:
//Get all new/updated documents since a given etag
http://localhost:8080/databases/{MyDatabase}/docs?etag=01000000-0000-0010-0000-000000000001
问题是,上面返回来自所有集合的新/更新文档。
我的问题是,是否可以查询 Ravens rest api 以仅返回自给定 etag 以来已更改的文档,仅针对特定集合?我已经尝试了以下选项,但是对于除 /docs 端点之外的任何 api 调用,etag 参数似乎都被忽略了。
//etag parameter is ignored for these calls
http://localhost:8080/databases/{MyDatabase}/indexes/dynamic/{MyEntity}?etag=01000000-0000-0010-0000-000000000001
http://localhost:8080/databases/{MyDatabase}/indexes/Raven/DocumentsByEntityName?query=Tag:{MyEntity}&etag=01000000-0000-0010-0000-000000000001