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
View File
@@ -165,6 +165,14 @@
<% end %>
<% end %>
<% end %>
<% if !Docuseal.multitenant? && SearchEntry.table_exists? && (!Docuseal.fulltext_search? || params[:reindex] == 'true') && can?(:manage, EncryptedConfig) %>
<div class="flex items-center justify-between py-2.5">
<span>
Efficient search with search index
</span>
<%= button_to params[:reindex] == 'true' ? 'Reindex' : 'Build Search Index', settings_search_entries_reindex_index_path, method: :post, class: 'btn btn-sm btn-neutral text-white px-4' %>
</div>
<% end %>
</div>
<% end %>
<%= render 'compliances' %>