2021-12-30 07:38:38 -05:00
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
|
2022-01-21 22:05:38 -05:00
|
|
|
if settings.SEARCH_BACKEND == 'MEILISEARCH':
|
|
|
|
from .search.meilisearch import Indexer
|
|
|
|
elif settings.SEARCH_BACKEND == 'TYPESENSE':
|
|
|
|
from .search.typesense import Indexer
|
2022-01-22 14:04:21 -05:00
|
|
|
else:
|
|
|
|
class Indexer:
|
|
|
|
@classmethod
|
|
|
|
def update_model_indexable(self, cls):
|
|
|
|
pass
|