0

I'm trying to list all nodes from an index in my neo4j database. The following code works however it only prints out about 600 nodes when I have over 10K in the index. I suspect I'm using the wrong the method. Any help is appreciated.

myindex = graph_db.get_or_create_index(neo4j.Node, "nodeID")
allnodes = myindex.query("nodeID:*")
for i in allnodes:
    value1 = "{0}".format(i['nodeID'])
    print value1
Chris Hall
  • 871
  • 6
  • 13
  • 21

1 Answers1

0

I can't see any reason why that wouldn't work based on what you've posted here. Perhaps you're hitting some kind of limit I haven't yet encountered. Do you have any log output you can post?

If you want to get in touch privately (via email), and are willing to share your source database, I can try to help you solve this particular case and see if a more general issue can be identified.

Nigel Small
  • 4,475
  • 1
  • 17
  • 15
  • I figure it out (kinda). its returning a unicode error:Traceback (most recent call last): File "", line 2, in value1 = "{0}".format(i['whoisID']) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 23: ordinal not in range(128) – Chris Hall Jan 25 '13 at 23:45