Skip to content

Instantly share code, notes, and snippets.

@elventear
Last active October 11, 2015 13:07
Show Gist options
  • Save elventear/3863471 to your computer and use it in GitHub Desktop.
Save elventear/3863471 to your computer and use it in GitHub Desktop.
#query #lucene from #gremlin on #neo4j
// Source: https://groups.google.com/forum/#!topic/neo4j/x_US3cIH5wU
index = g.getRawGraph().index()
products = index.forNodes('products')
hits = products.query("name:*foo*")
results = new com.tinkerpop.blueprints.pgm.impls.neo4j.util.Neo4jVertexSequence(hits, g)._().map.toList()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment