For thew document class i want to change to _id used to be a slug or another option
@registry.register_document
class TestDocument(Document):
id = fields.IntegerField(attr='id', multi=True)
name = fields.TextField(
analyzer=html_strip,
fields={
'raw': fields.TextField(analyzer='keyword'),
}
)
built_area = fields.TextField(
analyzer=html_strip,
fields={
'raw': fields.TextField(analyzer='keyword'),
}
)
living_area = fields.TextField(
analyzer=html_strip,
fields={
'raw': fields.TextField(analyzer='keyword'),
}
)
project = fields.ObjectField(properties={
'name': fields.TextField(),
'pk': fields.TextField(),
})
this thread mentions the meta, but do not works