ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

how to build inverted index #236

Open liulfy opened 1 year ago

liulfy commented 1 year ago

When I try to build inverted index using ensureIndex(index_type='inverted', fields=[ "_key" ]) It will raise exception Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/lib/python3.8/site-packages/pyArango/collection.py", line 624, in ensureIndex self.indexes[index_type][ind.infos["id"]] = ind KeyError: 'inverted'

It didn't fail in collection.py line 623, which means there is an index named 'inverted'. How to create this index?