Changeset 580 for trunk/grails-app


Ignore:
Timestamp:
Jun 7, 2010, 10:19:48 PM (14 years ago)
Author:
gav
Message:

Small adjustment to rebuilding index log messages.

Location:
trunk/grails-app/services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/CreateBulkDataService.groovy

    r572 r580  
    8383        log.info "Creating BULK data...complete."
    8484
    85         log.info "Start mirroring lucene index."
     85        log.info "Start mirroring Lucene index."
    8686        searchableService.startMirroring()
    87         log.info "Rebuilding lucene text search index."
     87        log.info "Rebuilding Lucene index, bulkIndex."
    8888        searchableService.reindex()
    89         log.info "Rebuilding lucene text search index, complete."
     89        log.info "Rebuilding Lucene index, complete."
    9090
    9191        return result
     
    107107            return fail(code: 'default.not.development.environment.failure')
    108108
    109         log.info "Stop mirroring lucene index."
     109        log.info "Stop mirroring Lucene index."
    110110        searchableService.stopMirroring()
    111111
     
    121121        log.info "Creating BULK data...complete."
    122122
    123         log.info "Start mirroring lucene index."
     123        log.info "Start mirroring Lucene index."
    124124        searchableService.startMirroring()
    125         log.info "Rebuilding lucene text search index."
     125        log.info "Rebuilding Lucene index, bulkIndex."
    126126        searchableService.reindex()
    127         log.info "Rebuilding lucene text search index, complete."
     127        log.info "Rebuilding Lucene index, complete."
    128128
    129129        return result
  • trunk/grails-app/services/CreateDataService.groovy

    r576 r580  
    15251525    /**
    15261526    * Lucene index and mirroring is disabled at startup.
    1527     * Us this to start lucene indexing after creating bootstrap data.
     1527    * Us this to start Lucene indexing after creating bootstrap data.
    15281528    * @param indexInNewThread Whether to run the index in a new thread, defaults to true.
    15291529    */
    15301530    def startLucene(Boolean indexInNewThread = true) {
    1531         log.info "Start mirroring lucene index."
     1531        log.info "Start mirroring Lucene index."
    15321532        searchableService.startMirroring()
    15331533        if(indexInNewThread) {
    15341534            Thread.start {
    1535                 log.info "Rebuilding lucene text search index, bulkIndex in new thread."
     1535                log.info "Rebuilding Lucene index, bulkIndex (new thread)."
    15361536                searchableService.index()
    1537                 log.info "Rebuilding lucene text search index, complete."
     1537                log.info "Rebuilding Lucene index, complete."
    15381538            }
    15391539        }
    15401540        else {
    1541             log.info "Rebuilding lucene text search index, bulkIndex."
     1541            log.info "Rebuilding Lucene index, bulkIndex."
    15421542            searchableService.index()
    1543             log.info "Rebuilding lucene text search index, complete."
     1543            log.info "Rebuilding Lucene index, complete."
    15441544        }
    15451545    }
Note: See TracChangeset for help on using the changeset viewer.