Feature/cook news search
This commit is contained in:
parent
3641d88a05
commit
9b3d42147a
|
|
@ -31,6 +31,7 @@ class NewsDocument(Document):
|
|||
'id': fields.IntegerField(attr='id'),
|
||||
'label': fields.ObjectField(attr='label_indexing',
|
||||
properties=OBJECT_FIELD_PROPERTIES),
|
||||
'value': fields.KeywordField()
|
||||
},
|
||||
multi=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,14 @@ class NewsDocumentViewSet(BaseDocumentViewSet):
|
|||
'field': 'tags.id',
|
||||
'lookups': [
|
||||
constants.LOOKUP_QUERY_IN,
|
||||
constants.LOOKUP_QUERY_EXCLUDE
|
||||
]
|
||||
},
|
||||
'tag_value': {
|
||||
'field': 'tags.value',
|
||||
'lookups': [
|
||||
constants.LOOKUP_QUERY_IN,
|
||||
constants.LOOKUP_QUERY_EXCLUDE
|
||||
]
|
||||
},
|
||||
'slug': 'slug',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user