Reputation: 571
I'm trying to follow these docs: http://readthedocs.org/docs/neo4j-rest-client/en/latest/indices.html This works fine
from neo4jrestclient.client import GraphDatabase, Q
db = GraphDatabase("http://localhost:7474/db/data")
userIndex = db.nodes.indexes.get("index2")
print userIndex.query('username', "*")[:]
and according to the docs, this should also work, but doesn't.
print userIndex.query(Q('username', "*"))[:]
I upgraded to the latest version in the pip repository. Is this a bug?
Upvotes: 2
Views: 202
Reputation: 669
I'm not sure if that is an issue on neo4j-rest-client than the lucene-querybuilder. Anyway, you can try using the argument wildcard
like:
print userIndex.query(Q('username', "*", wildcard=True))[:]
And tell me if it worked :-)
Upvotes: 4
Reputation: 571
This is/was a bug, which I filed here: https://github.com/versae/neo4j-rest-client/issues/67
Upvotes: 0