Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338023

Summary: Dynamic help search does not find all occurrences of string in the doc plug-in
Product: [Eclipse Project] Platform Reporter: Ruth Stento <ruth>
Component: User AssistanceAssignee: platform-ua-inbox <platform-ua-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: cgold
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screen shot of search results
none
Screen shot of text that dynamic search is not finding none

Description Ruth Stento CLA 2011-02-23 16:30:53 EST
Build Identifier: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu

The dynamic help window shows the string it is searching on to return results. However, for my product, it is only finding five occurrences of the string, when many more (and much more relevant) exist. I am prohibited from attaching my full help plug-in, so I've provided a screen shot of the dynamic help results and then a screen shot of one occurrence of the string that is in the same doc plug-in as the ones dynamic help is finding. I've checked the HTML to make sure that no extra spaces or strange characters are in the source. 

Reproducible: Always
Comment 1 Ruth Stento CLA 2011-02-23 16:43:15 EST
Created attachment 189646 [details]
screen shot of search results
Comment 2 Ruth Stento CLA 2011-02-23 16:43:51 EST
Created attachment 189647 [details]
Screen shot of text that dynamic search is not finding
Comment 3 Chris Goldthorpe CLA 2011-02-23 17:59:23 EST
Are there other pages in your document set which match all of the four words in the search phrase?
Comment 4 Ruth Stento CLA 2011-02-24 10:32:02 EST
(In reply to comment #3)
> Are there other pages in your document set which match all of the four words in
> the search phrase?

Yes, at least two more with the identical string.
Comment 5 Chris Goldthorpe CLA 2011-02-24 15:33:31 EST
It's hard to say why some pages would be missed by a search without seeing the actual pages. Here are some possible reasons why results might not be found

1. The pages are not in the table of contents and not in an "extradir". 
2. One of the search words only occurs in the document as part of a larger word.
3. The search index is not up to date and documents have been added since the search index was built.
Comment 6 Ruth Stento CLA 2011-02-24 15:35:08 EST
(In reply to comment #5)
> It's hard to say why some pages would be missed by a search without seeing the
> actual pages. Here are some possible reasons why results might not be found
> 
> 1. The pages are not in the table of contents and not in an "extradir". 
> 2. One of the search words only occurs in the document as part of a larger
> word.
> 3. The search index is not up to date and documents have been added since the
> search index was built.


Hi,

Items 1 and 2 do not apply. How do I get the search index to re-fresh or re-build?
Comment 7 Chris Goldthorpe CLA 2011-02-24 17:30:28 EST
Look for this folder underneath your workspace and delete it. This contains the merged search indexes.

.metadata\.plugins\org.eclipse.pde.core\pde-junit\org.eclipse.help.base\index
Comment 8 Chris Goldthorpe CLA 2011-02-24 17:39:46 EST
The path I just gave would be for if you launched a new workbench from Eclipse. If you are just launching one instance of Eclipse look in the installation directory and delete this folder.

eclipse\configuration\org.eclipse.help.base\index
Comment 9 Ruth Stento CLA 2011-02-25 13:30:46 EST
(In reply to comment #7)
> Look for this folder underneath your workspace and delete it. This contains the
> merged search indexes.
> 
> .metadata\.plugins\org.eclipse.pde.core\pde-junit\org.eclipse.help.base\index

That did it, Thanks!

It would be great if this kind of information could be included in the documentation.
Comment 10 Chris Goldthorpe CLA 2011-02-25 13:47:51 EST
I'm glad to hear that worked, closing.