Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个图表,我想通过每个顶点的任何键中可能出现的文本来查询顶点(全文搜索)。怎么做?
我使用 Titan 0.9.0-M2 和 Tinkerpop 3。索引后端是 Elasticsearch。
假设您的索引被称为vertices,那么您将执行以下操作:
vertices
graph.indexQuery("vertices","v.*:term").vertices()
这是众神图的一个例子:
gremlin> graph.indexQuery("edges", "e.*:loves").edges()*.getElement()*.value("reason") ==>loves waves ==>loves fresh breezes