Skip to content

Commit

Permalink
feat: search spoiler text
Browse files Browse the repository at this point in the history
  • Loading branch information
wzyboy committed Jul 30, 2023
1 parent d9b37e6 commit c079847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ash.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def search(self, *, keyword=None, user_screen_name=None, index=None, limit=100)
keyword_query = {
'simple_query_string': {
'query': keyword,
'fields': ['text', 'full_text', 'content_text', 'media_attachments.description'],
'fields': ['text', 'full_text', 'content_text', 'spoiler_text', 'media_attachments.description'],
'default_operator': 'AND',
}
}
Expand Down

0 comments on commit c079847

Please sign in to comment.