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