Skip to content

Commit

Permalink
Move search engines
Browse files Browse the repository at this point in the history
  • Loading branch information
rejasupotaro committed Nov 2, 2024
1 parent eb6d627 commit 396c6e7
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ def is_indexable(product: Dict[str, Any]) -> bool:
Returns:
bool: A flag indicating whether the pipeline will index the doc.
"""
if product is None:
return False
if "product_title" not in product:
return False
return product["product_title"]
return bool(product.get("product_title"))
2 changes: 1 addition & 1 deletion src/amazon-product-search/tasks/es_tasks.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import contextlib

from elasticsearch import NotFoundError
from invoke import task

from amazon_product_search.constants import HF
from amazon_product_search.core.es.es_client import EsClient
from elasticsearch import NotFoundError


@task
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 396c6e7

Please sign in to comment.