Gremlin 文本搜索或子图上的索引
我正在尝试使用图形数据库开发文件共享/权限的解决方案。 我面临的挑战是如何实现某些字段(如名称、扩展名、日期等)的全文搜索。
这就是我认为的图表。 当 user2 搜索文件夹时 - hew 应该能够看到与他共享的内容以及与名称匹配的他自己的文件。椭圆形代表我认为应该是搜索的限制 - 如果我理解正确的话,按名称搜索整个顶点索引并在所有者/访问权限之后进行过滤是低效的。
所以问题是 - 有没有办法使用 gremlin 搜索图的子图?最好在 Janusgraph(+Cassandra) 中。或者有更好的做法吗?也许将完整的文件列表存储在客户端中(通过 Websocket 更新)并在平面结构上执行本地搜索?
I am trying to develop the solution for file sharing/permissions using graph database.
The challange I faced with is how to implement full-text search for certain fields like name, extension, date, etc.
This is what I think the graph is.
When user2 searches Folder - hew should be able to see what is shared with him + his own files matching the name. Elliptical shape represents what I think should be the limit of search - if I understand it right it would be inefficient to search the whole vertices index by the name and after that filter by the owner/access.
So the question is - is there a way to search the subgraph of the graph using gremlin? Preferably in Janusgraph(+Cassandra). Or is there a better practice for such? Maybe to store the full list of files in the client(updates via Websocket) and perform the local search on flat structure?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论