Changeset 580 for trunk/grails-app/services/CreateDataService.groovy
- Timestamp:
- Jun 7, 2010, 10:19:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.