@staticmethod
def deindex(db, key, doc, tokens, **kwargs):
    for field in config.FIELDS:
        name = field['key']
        if (name == config.HOUSENUMBERS_FIELD):
            continue
        values = doc.get(name)
        if values:
            if (not isinstance(values, (list, tuple))):
                values = [values]
            for value in values:
                tokens.extend(deindex_field(key, value))
@staticmethod
def deindex(db, key, doc, tokens, **kwargs):
    for field in config.FIELDS:
        name = field['key']
        if (name == config.HOUSENUMBERS_FIELD):
            continue
        values = doc.get(name)
        if values:
            if (not isinstance(values, (list, tuple))):
                values = [values]
            for value in values:
                tokens.extend(deindex_field(key, value))