This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When searching using the "Find in Projects..." actions, the Search Results window may not display all of the found nodes. But the root node of results displays a correct number. See the attached screenshot.
Created attachment 20000 [details] screenshot - only 2 of 4 found nodes displayed
I found the cause of the disharmony between reported number of found nodes and the actual number of found nodes. The cause is that some nodes are found multiple times - number of nodes is incremented each time (a node is found) but when when the same node is found the second time, it is not added to the list. The core problem is that a single node can be found twice. A simple way of how to workaround the disharmony is to check whether the node just found has been already found and not increment the number of nodes if it has been found.
Fixed in the trunk. The bug was fixed the simple way described above. Modified files: utilities/src/org/netbeans/modules/search/: ResultModel.java (1.47) ResultTreeChildren.java (1.8) ResultView.java (1.29) Diffs: http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/ResultModel.java.diff?r1=1.46&r2=1.47&f=u http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/ResultTreeChildren.java.diff?r1=1.7&r2=1.8&f=u http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/ResultView.java.diff?r1=1.28&r2=1.29&f=u