diff --git a/Makefile b/Makefile index 42603ec5..256f79cd 100644 --- a/Makefile +++ b/Makefile @@ -102,6 +102,10 @@ lint_front: @echo "🔎 Running linters for frontend code..." ${DOCKER_COMPOSE} run --rm search_nodejs npm run format +tsc_watch: + @echo "🔎 Running front-end tsc in watch mode..." + ${DOCKER_COMPOSE} run --rm search_nodejs npm run build:watch + #-------# # Tests # #-------# diff --git a/frontend/public/off.html b/frontend/public/off.html index 0f20c5b6..7c5d9161 100644 --- a/frontend/public/off.html +++ b/frontend/public/off.html @@ -327,278 +327,47 @@
{
- "query": {
- "bool": {
- "should": [
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "product_name.en": {
- "query": "test",
- "boost": 2.0
- }
- }
- },
- {
- "match_phrase": {
- "product_name.fr": {
- "query": "test",
- "boost": 2.0
- }
- }
- }
- ]
- }
- },
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "generic_name.en": {
- "query": "test",
- "boost": 2.0
- }
- }
- },
- {
- "match_phrase": {
- "generic_name.fr": {
- "query": "test",
- "boost": 2.0
- }
- }
- }
- ]
- }
- },
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "categories.en": {
- "query": "test",
- "boost": 2.0
- }
- }
- },
- {
- "match_phrase": {
- "categories.fr": {
- "query": "test",
- "boost": 2.0
- }
- }
- }
- ]
- }
- },
- {
- "bool": {
- "should": [
- {
- "match_phrase": {
- "labels.en": {
- "query": "test",
- "boost": 2.0
- }
- }
- },
- {
- "match_phrase": {
- "labels.fr": {
- "query": "test",
- "boost": 2.0
- }
- }
- }
- ]
- }
- },
- {
- "match_phrase": {
- "brands": {
- "query": "test",
- "boost": 2.0
- }
- }
- },
- {
- "multi_match": {
- "query": "test",
- "fields": [
- "product_name.en",
- "product_name.fr",
- "generic_name.en",
- "generic_name.fr",
- "categories.en",
- "categories.fr",
- "labels.en",
- "labels.fr",
- "brands"
- ]
- }
- }
- ]
- }
- },
- "aggs": {
- "brands_tags": {
- "terms": {
- "field": "brands_tags"
- }
- },
- "lang": {
- "terms": {
- "field": "lang"
- }
- },
- "owner": {
- "terms": {
- "field": "owner"
- }
- },
- "categories_tags": {
- "terms": {
- "field": "categories_tags"
- }
- },
- "labels_tags": {
- "terms": {
- "field": "labels_tags"
- }
- },
- "countries_tags": {
- "terms": {
- "field": "countries_tags"
- }
- },
- "states_tags": {
- "terms": {
- "field": "states_tags"
- }
- },
- "nutrition_grades": {
- "terms": {
- "field": "nutrition_grades"
- }
- },
- "ecoscore_grade": {
- "terms": {
- "field": "ecoscore_grade"
- }
- },
- "nova_groups": {
- "terms": {
- "field": "nova_groups"
- }
- }
- },
- "size": 24,
- "from": 0
-}
+ FIXME: pagination