Skip to content

how to build inverted index #236

@liulfy

Description

@liulfy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions