Open jacobtoppm opened 2 months ago
Currently, uses of .query or similar methods on custom indexes, created following the examples at https://github.com/wagtail/wagtail-vector-index/blob/main/docs/vector-indexes.md fail with a KeyError unless registered like https://github.com/wagtail/wagtail-vector-index/blob/main/tests/testapp/models.py#L40. We should document this and make sure the examples contain the decorator so they work out of the box.
.query
KeyError
Currently, uses of
.query
or similar methods on custom indexes, created following the examples at https://github.com/wagtail/wagtail-vector-index/blob/main/docs/vector-indexes.md fail with aKeyError
unless registered like https://github.com/wagtail/wagtail-vector-index/blob/main/tests/testapp/models.py#L40. We should document this and make sure the examples contain the decorator so they work out of the box.