6 Commits

Author SHA1 Message Date
8731262e51 update docker-compose-test 2023-11-08 18:02:40 +08:00
612151c151 remove elastic from docker-compose 2023-10-05 14:24:04 +08:00
1b9d22cb6f update elastic-test docker volumn 2022-07-07 15:08:34 +08:00
92c8047a66 Update environment variable names in docker 2022-06-24 10:52:13 -07:00
2ef5d101bb Create index if not exists in migration 2022-06-17 22:07:41 +08:00
ae0d1dd2ee Feature/search highlights backend (#395)
* add highlight mappings

* return highlight in resolvers

* temporarily skip highlight tests

* add test for getting highlights

* update merge highlight

* separate elastic methods

* roll back merge highlight test

* add highlight to elastic script

* update delete highlight in elastic

* migrate highlight data from postgres to elastic

* rescue not found exception when page is not found in the migration script

* exclude highlights in searching pages results

* search pages with highlights only with has:highlight query

* add search endpoint to search pages or highlights

* reduce code smell in search api

* fix rebase error

* fix tests

* add test for search highlight

* add test for new search endpoint

* add labels to search results

* update schema

* update search query

* fix update/share highlights

* fix rebase error

* fix tests

* add highlight model in elastic

* add savedAt and publishedAt date range in search query

* add sort by updated and recently read

* fix tests

* close db connection when tests are done

* test github action

* revert github action test

* fix rebase error

* add docker-compose for api-test

* remove unused env

* remove highlights with no page attached to

* allow get_articles resolver to search for query so we can merge it without web changes
2022-04-12 12:31:08 +08:00