add onprem search reindex

This commit is contained in:
Pete Matsyburka
2025-06-21 22:52:10 +03:00
parent 47b235dc5f
commit 35852ef6ab
10 changed files with 48 additions and 9 deletions
+8 -5
View File
@@ -73,12 +73,15 @@ module Docuseal
@default_pkcs ||= GenerateCertificate.load_pkcs(Docuseal::CERTS)
end
def fulltext_search?(_user)
return false unless SearchEntry.table_exists?
return true if Docuseal.multitenant?
return true if Rails.env.local?
def fulltext_search?
return @fulltext_search unless @fulltext_search.nil?
false
@fulltext_search =
if SearchEntry.table_exists?
Docuseal.multitenant? ? true : AccountConfig.exists?(key: :fulltext_search, value: true)
else
false
end
end
def enable_pwa?