lib.itmens/common/index.py
2022-01-21 22:09:02 -05:00

7 lines
211 B
Python

from django.conf import settings
if settings.SEARCH_BACKEND == 'MEILISEARCH':
from .search.meilisearch import Indexer
elif settings.SEARCH_BACKEND == 'TYPESENSE':
from .search.typesense import Indexer