mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							566 B
						
					
					
				
			
		
		
	
	
							18 lines
						
					
					
						
							566 B
						
					
					
				| # frozen_string_literal: true
 | |
| 
 | |
| class SearchEntriesReindexController < ApplicationController
 | |
|   def create
 | |
|     authorize!(:manage, EncryptedConfig)
 | |
| 
 | |
|     ReindexAllSearchEntriesJob.perform_async
 | |
| 
 | |
|     AccountConfig.find_or_initialize_by(account_id: Account.minimum(:id), key: :fulltext_search)
 | |
|                  .update!(value: true)
 | |
| 
 | |
|     Docuseal.instance_variable_set(:@fulltext_search, nil)
 | |
| 
 | |
|     redirect_back(fallback_location: settings_account_path,
 | |
|                   notice: "Started building search index. Visit #{root_url}jobs/busy to check progress.")
 | |
|   end
 | |
| end
 |