<commit_before>import datetime
from haystack import indexes
from haystack import site
import mysite.profile.models

class PersonIndex(indexes.SearchIndex):
    null_document = indexes.CharField(document=True)
    all_tag_texts = MultiValueField()

    def prepare_null_document(self, person_instance):
        return '' # lollerskates

    def prepare_all_tag_texts(self, person_instance):
        return ['your', 'mom bbq']

site.register(mysite.profile.models.Person, PersonIndex)<commit_msg>We successfully index the tags of a person.<commit_after>import datetime
from haystack import indexes
from haystack import site
import mysite.profile.models

class PersonIndex(indexes.SearchIndex):
    null_document = indexes.CharField(document=True)
    all_tag_texts = indexes.MultiValueField()

    def prepare_null_document(self, person_instance):
        return '' # lollerskates

    def prepare_all_tag_texts(self, person_instance):
        return person_instance.get_tag_texts_for_map()

site.register(mysite.profile.models.Person, PersonIndex)
{'fraction_non_alphanumeric': 0.07839388145315487, 'fraction_numerical': 0.0, 'mean_word_length': 5.269461077844311, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5302837', 'n_tokens_mistral': 312, 'n_tokens_neox': 299, 'n_words': 68}