rm works_now from elastic
This commit is contained in:
parent
ea5140cc9c
commit
9cdb3cca27
|
|
@ -37,7 +37,7 @@ class EstablishmentDocument(Document):
|
||||||
works_noon = fields.ListField(fields.IntegerField(
|
works_noon = fields.ListField(fields.IntegerField(
|
||||||
attr='works_noon'
|
attr='works_noon'
|
||||||
))
|
))
|
||||||
works_now = fields.BooleanField(attr='works_now')
|
# works_now = fields.BooleanField(attr='works_now')
|
||||||
tags = fields.ObjectField(
|
tags = fields.ObjectField(
|
||||||
properties={
|
properties={
|
||||||
'id': fields.IntegerField(attr='id'),
|
'id': fields.IntegerField(attr='id'),
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ class EstablishmentDocumentSerializer(DocumentSerializer):
|
||||||
'schedule',
|
'schedule',
|
||||||
'works_noon',
|
'works_noon',
|
||||||
'works_evening',
|
'works_evening',
|
||||||
'works_now',
|
# 'works_now',
|
||||||
# 'collections',
|
# 'collections',
|
||||||
# 'establishment_type',
|
# 'establishment_type',
|
||||||
# 'establishment_subtypes',
|
# 'establishment_subtypes',
|
||||||
|
|
|
||||||
|
|
@ -152,12 +152,12 @@ class EstablishmentDocumentViewSet(BaseDocumentViewSet):
|
||||||
constants.LOOKUP_QUERY_IN,
|
constants.LOOKUP_QUERY_IN,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'works_now': {
|
# 'works_now': {
|
||||||
'field': 'works_now',
|
# 'field': 'works_now',
|
||||||
'lookups': [
|
# 'lookups': [
|
||||||
constants.LOOKUP_FILTER_TERM,
|
# constants.LOOKUP_FILTER_TERM,
|
||||||
]
|
# ]
|
||||||
},
|
# },
|
||||||
}
|
}
|
||||||
|
|
||||||
geo_spatial_filter_fields = {
|
geo_spatial_filter_fields = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user