Ignore:
Timestamp:
Jun 2, 2010, 4:31:17 PM (14 years ago)
Author:
gav
Message:

Install searchable plugin, configure and start inventory search.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AppCoreController.groovy

    r548 r562  
    1111    def appConfigService
    1212    def createDataService
     13    def searchableService
    1314    def createBulkDataService
    1415
     
    251252    }
    252253
     254    /**
     255    * Rebuild the lucene text search index.
     256    */
     257    @Secured(['ROLE_AppAdmin', 'ROLE_Manager'])
     258    def rebuildTextSearchIndex = {
     259        log.info "Rebuilding lucene text search index."
     260        searchableService.reindex()
     261        log.info "Rebuilding lucene text search index, complete."
     262
     263        flash.message = g.message(code:"default.update.success", args:["Index ", ''])
     264        redirect(action: manager)
     265    }
     266
    253267} // end of class.
Note: See TracChangeset for help on using the changeset viewer.