server/image_search: implement reverse search functionality in postgres

This will remove the dependency on the Elasticsearch database.

The search query is passed currently as raw SQL. Proper implementation
using SQLAlchemy will need custom ORM classed to be made.

Additional config parameter "allow_broken_uploads" has been added.
This commit is contained in:
Shyam Sunder
2020-03-07 20:43:20 -05:00
parent a616cf6987
commit 4c78cf8c47
7 changed files with 187 additions and 231 deletions

View File

@ -21,11 +21,15 @@ thumbnails:
post_width: 300
post_height: 300
# automatically convert animated GIF uploads to video formats
convert:
gif:
to_webm: false
to_mp4: false
# allow posts to be uploaded even if some image processing errors occur
allow_broken_uploads: false
# used to send password reset e-mails
smtp:
host: # example: localhost