1.
index.RelatedFields('tagged_items__tag', [
index.SearchField('name'),
])
>>>> raise FieldDoesNotExist('%s has no field named %r' % (self.object_name, field_name))
django.core.exceptions.FieldDoesNotExist: Article has no field named u'tagged_items__tag'
2.
index.RelatedFields('tagged_items', [
index.SearchField('tag__name'),
])
>>>> AttributeError: 'NoneType' object has no attribute '_meta'
3.
index.RelatedFields('tagged_items', [
index.RelatedFields('tag', [
index.SearchField('name'),
index.SearchField('slug'),
])
])
>>>> No error, but elastic indexes null
>>>> "article_article__tagged_items": null,
4.
index.SearchField('tagged_items__tag__name'),
>>>> AttributeError: 'NoneType' object has no attribute '_meta'
5.
With the method def "get_tag_name" on the through model.
index.RelatedFields('tagged_items', [
index.SearchField('get_tag_name')
])
>>>> "article_article__tagged_items": null,
6.
index.RelatedFields('tags', [
index.SearchField('name'),
index.SearchField('slug'),
])
>>>> AttributeError: 'NoneType' object has no attribute '_meta'
My question is that has this type of indexing ever worked in the first place, and if so, what am I doing wrong?
Thanks!
/ Martin