espeed / bulbs

A Python persistence framework for graph databases like Neo4j, OrientDB and Titan.
http://bulbflow.org
Other
622 stars 83 forks source link

neo4jserver FulltextIndex not performing as expected on put_unique #134

Open fphhotchips opened 10 years ago

fphhotchips commented 10 years ago
Traceback (most recent call last):
  File "indexer.py", line 392, in <module>
    add_to_fulltext(int(p.fulltext))
  File "indexer.py", line 303, in add_to_fulltext
    index.put_unique(node, key="title", value=node.title)
  File "/usr/local/lib/python2.7/dist-packages/bulbs/neo4jserver/index.py", line 313, in put_unique
    return self.update(_id, key, value, **pair)
  File "/usr/local/lib/python2.7/dist-packages/bulbs/neo4jserver/index.py", line 269, in update
    for result in self.get(key,value):
AttributeError: 'FulltextIndex' object has no attribute 'get'

I'll take a look at the code now and see if there's an easy patch that I can contribute; apologies if this is user error or if this has been posted before.