codesearch-github/codesearch — Issue #27: "Clear before indexing" does not work (for SVN Repositories with Dash in name?)
Author: marmichael
Created: 2012-02-20 14:00:21+00:00
State: open

Start manual indexing with checked "Clear before indexing" produce duplicated search result entries. Logfile states:

14:48:41,747 DEBUG IndexingTask:415 - Added file: tmh.gif to index.
14:48:41,798 INFO IndexingTask:221 - Indexing of repository BE-Microsites took 147 seconds
14:48:41,812 INFO IndexingTask:243 - Finished indexing
14:48:42,621 DEBUG IndexingJob:161 - Finished execution of job in 148.748 seconds
14:48:42,622 INFO IndexingJob:162 - Finished execution of INDEXING_JOBS.manual-job1329745573823
14:49:03,073 INFO DocumentSearcherImpl:138 - Searching index with query: +content_lc:public +content_lc:void +repository:be-microsites
14:49:03,103 INFO DocumentSearcherImpl:141 - Found 200 results
14:49:21,836 INFO IndexingManager:259 - Starting manual indexing job for
14:49:21,838 DEBUG IndexingJobTriggerListener:66 - Checking if a job is currently running
14:49:21,838 DEBUG IndexingJobTriggerListener:67 - 0 jobs currently running
14:49:21,838 INFO IndexingJob:127 - Executing INDEXING_JOBS.manual-job1329745761836, indexing 1 repositories
14:49:21,838 INFO ClearTask:119 - Clearing index for repositories: BE-Microsites
14:49:21,847 DEBUG ClearTask:133 - Deleting documents where field 'repository' is 'BE-Microsites'
14:49:21,848 DEBUG ClearTask:143 - Cleared 0 documents for repository BE-Microsites
14:49:22,428 DEBUG ClearTask:167 - Cleared code analysis index for repository BE-Microsites
14:49:22,428 INFO ClearTask:174 - Finished clearing index
14:49:22,428 INFO IndexingJob:147 - Opened index at org.apache.lucene.store.MMapDirectory@/data/codesearch/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@510321a9
14:49:22,431 DEBUG IndexingTask:142 - IndexWriter initialization successful
14:49:22,431 INFO IndexingTask:160 - Starting indexing of repositories: BE-Microsites
14:49:22,431 INFO IndexingTask:168 - Indexing repository: BE-Microsites using code analyzing
14:49:22,431 INFO IndexingTask:172 - Last indexed revision is: -1
14:49:22,443 INFO IndexingTask:178 - Newest revision is : 238

maybe this is the same problem as

https://github.com/codesearch-github/codesearch/issues/25

in the indexer? however, searching while Repository with dash in name is selected does work!