Changeset 580 for trunk/grails-app
- Timestamp:
- Jun 7, 2010, 10:19:48 PM (14 years ago)
- Location:
- trunk/grails-app/services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateBulkDataService.groovy
r572 r580 83 83 log.info "Creating BULK data...complete." 84 84 85 log.info "Start mirroring lucene index."85 log.info "Start mirroring Lucene index." 86 86 searchableService.startMirroring() 87 log.info "Rebuilding lucene text search index."87 log.info "Rebuilding Lucene index, bulkIndex." 88 88 searchableService.reindex() 89 log.info "Rebuilding lucene text searchindex, complete."89 log.info "Rebuilding Lucene index, complete." 90 90 91 91 return result … … 107 107 return fail(code: 'default.not.development.environment.failure') 108 108 109 log.info "Stop mirroring lucene index."109 log.info "Stop mirroring Lucene index." 110 110 searchableService.stopMirroring() 111 111 … … 121 121 log.info "Creating BULK data...complete." 122 122 123 log.info "Start mirroring lucene index."123 log.info "Start mirroring Lucene index." 124 124 searchableService.startMirroring() 125 log.info "Rebuilding lucene text search index."125 log.info "Rebuilding Lucene index, bulkIndex." 126 126 searchableService.reindex() 127 log.info "Rebuilding lucene text searchindex, complete."127 log.info "Rebuilding Lucene index, complete." 128 128 129 129 return result -
trunk/grails-app/services/CreateDataService.groovy
r576 r580 1525 1525 /** 1526 1526 * 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. 1528 1528 * @param indexInNewThread Whether to run the index in a new thread, defaults to true. 1529 1529 */ 1530 1530 def startLucene(Boolean indexInNewThread = true) { 1531 log.info "Start mirroring lucene index."1531 log.info "Start mirroring Lucene index." 1532 1532 searchableService.startMirroring() 1533 1533 if(indexInNewThread) { 1534 1534 Thread.start { 1535 log.info "Rebuilding lucene text search index, bulkIndex in new thread."1535 log.info "Rebuilding Lucene index, bulkIndex (new thread)." 1536 1536 searchableService.index() 1537 log.info "Rebuilding lucene text searchindex, complete."1537 log.info "Rebuilding Lucene index, complete." 1538 1538 } 1539 1539 } 1540 1540 else { 1541 log.info "Rebuilding lucene text searchindex, bulkIndex."1541 log.info "Rebuilding Lucene index, bulkIndex." 1542 1542 searchableService.index() 1543 log.info "Rebuilding lucene text searchindex, complete."1543 log.info "Rebuilding Lucene index, complete." 1544 1544 } 1545 1545 }
Note: See TracChangeset
for help on using the changeset viewer.