update ES documents
This commit is contained in:
parent
9d4c483f51
commit
bde81b3700
|
|
@ -39,13 +39,15 @@ class EstablishmentDocument(Document):
|
|||
}),
|
||||
},
|
||||
multi=True)
|
||||
# tags = fields.ObjectField(
|
||||
# properties={
|
||||
# 'tag': fields.ObjectField(properties={
|
||||
# 'id': fields.IntegerField(),
|
||||
# }),
|
||||
# },
|
||||
# multi=True)
|
||||
tags = fields.ObjectField(
|
||||
properties={
|
||||
'id': fields.IntegerField(attr='id'),
|
||||
'label': fields.ObjectField(attr='label_indexing',
|
||||
properties=OBJECT_FIELD_PROPERTIES),
|
||||
'category': fields.ObjectField(attr='category',
|
||||
properties={'id': fields.IntegerField()})
|
||||
},
|
||||
multi=True)
|
||||
address = fields.ObjectField(
|
||||
properties={
|
||||
'id': fields.IntegerField(),
|
||||
|
|
|
|||
|
|
@ -24,15 +24,15 @@ class NewsDocument(Document):
|
|||
country = fields.ObjectField(properties={'id': fields.IntegerField(),
|
||||
'code': fields.KeywordField()})
|
||||
web_url = fields.KeywordField(attr='web_url')
|
||||
# tags = fields.ObjectField(
|
||||
# properties={
|
||||
# 'id': fields.IntegerField(attr='metadata.id'),
|
||||
# 'label': fields.ObjectField(attr='metadata.label_indexing',
|
||||
# properties=OBJECT_FIELD_PROPERTIES),
|
||||
# 'category': fields.ObjectField(attr='metadata.category',
|
||||
# properties={'id': fields.IntegerField()})
|
||||
# },
|
||||
# multi=True)
|
||||
tags = fields.ObjectField(
|
||||
properties={
|
||||
'id': fields.IntegerField(attr='id'),
|
||||
'label': fields.ObjectField(attr='label_indexing',
|
||||
properties=OBJECT_FIELD_PROPERTIES),
|
||||
'category': fields.ObjectField(attr='category',
|
||||
properties={'id': fields.IntegerField()})
|
||||
},
|
||||
multi=True)
|
||||
|
||||
class Django:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user