Changeset 43 for trunk/NewView/SearchUnit.pas
- Timestamp:
- Jan 2, 2007, 8:29:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/SearchUnit.pas
r33 r43 48 48 uses 49 49 SysUtils, 50 DebugUnit, 50 51 ACLStringUtility, 51 ACLProfile,52 52 HelpTopic; 53 53 … … 360 360 Term := Query.Term[ TermIndex ]; 361 361 362 ProfileEvent('Searching for term "'362 LogEvent(LogSearch, 'Searching for term "' 363 363 + Term.Text 364 364 + '", ' … … 379 379 TermPart := Term.Parts[ TermPartIndex ]; 380 380 381 ProfileEvent(' Searching for [' + TermPart + ']' );381 LogEvent(LogSearch, ' Searching for [' + TermPart + ']' ); 382 382 383 383 AllocUInt32Array( DictionaryRelevances, … … 416 416 // this search term part, search topic texts 417 417 418 ProfileEvent(' Dictionary search done' );418 LogEvent(LogSearch, ' Dictionary search done' ); 419 419 ClearUInt32Array( TopicsMatchingTermPart, 420 420 TopicCount ); … … 441 441 end; 442 442 443 ProfileEvent( 'TOpic searches done' );443 LogEvent(LogSearch, 'Topic searches done' ); 444 444 445 445 if TermPartIndex = 0 then … … 460 460 // for all parts of the term. Now combine all together 461 461 462 ProfileEvent('Checking for sequences' );462 LogEvent(LogSearch, 'Checking for sequences' ); 463 463 for TopicIndex := 0 to TopicCount - 1 do 464 464 begin … … 494 494 // Search titles and index 495 495 496 ProfileEvent(' Searching titles' );496 LogEvent(LogSearch, ' Searching titles' ); 497 497 SearchTopicTitles( HelpFile, Term.Text, TopicsMatchingTerm ); 498 498 499 ProfileEvent(' Searching index' );499 LogEvent(LogSearch, ' Searching index' ); 500 500 SearchIndex( HelpFile, Term.Text, TopicsMatchingTerm ); 501 501 502 ProfileEvent(' Combining' );502 LogEvent(LogSearch, ' Combining' ); 503 503 case Term.CombineMethod of 504 504 cmOptional: … … 530 530 end; 531 531 532 ProfileEvent('Search completed, converting to list' );532 LogEvent(LogSearch, 'Search completed, converting to list' ); 533 533 534 534 // Now convert to list form. … … 547 547 end; 548 548 549 ProfileEvent('Freeing arrays' );549 LogEvent(LogSearch, 'Freeing arrays' ); 550 550 FreeUInt32Array( TopicRelevances, TopicCount ); 551 551 FreeUInt32Array( TopicsExcluded, TopicCount ); … … 554 554 FreeUInt32Array( TopicsMatchingDictWord, TopicCount ); 555 555 556 ProfileEvent('Done' );556 LogEvent(LogSearch, 'Done' ); 557 557 end; 558 558
Note:
See TracChangeset
for help on using the changeset viewer.