Skip to main content

Search freezes in statically merged helpsets - v2.0

1 reply [Last post]
hairyveggie
Offline
Joined: 2006-02-17
Points: 0

Hello, javahelp gurus.

I am a newbie to Java and JavaHelp, so please be brutally explicit with any help you may have for me.

I've been assigned the task of deciding which route to go to merge all of our helpsets for a single TOC view. I have the dynamic merge working, and that's great. But the static merge has a problem:

I have a dataless master helpset file with a to test the static merge. TOC navigation is fine, and we haven't implemented the index yet, so no problem there, but when I try to search, I get the little clock for a cursor and nothing is ever displayed in the search pane.
No exceptions are thrown, either, but one message does appear after the command line:

MergineSearchEngine: startSearch()

I have tried this with the helpsets inside jars, outside jars, in different paths, but I always get the same error. I did get a different result when using a data-full master helpset, but it still didn't work as expected. The only search results I got were from the master helpset, none from the subhelpset.

Here is the helpset file for the dataless master:

<?xml version='1.0' encoding='ISO-8859-1' ?>

Dataless Master Helpset - Static merging
TOC
Table Of Contents
javax.help.TOCView

Index
Index
javax.help.IndexView

Search
Search
javax.help.SearchView

And the subhelpset:

<?xml version='1.0' encoding='ISO-8859-1' ?>

General Ledger Account Definition

top

TOC
Table Of Contents
javax.help.TOCView
jhelptoc.xml

Index
Index
javax.help.IndexView
jhelpidx.xml

Search
Search
javax.help.SearchView

JavaHelpSearch

I am using the hsviewer.jar from the JH 2.0 release to view the helpsets, and the JavaHelpSearch directories were created using "jhindexer" from the same release. If it matters, I am using j2sdk1.4.1_02 running on RedHat 8.0.

If anyone has an idea what's going on here, I would greatly appreciate a bump in the right direction! Or a swift kick in the... right direction, as well. :D

Luke

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

java-help@JAVADESKTOP.ORG wrote:
> Hello, javahelp gurus.
>
> I am a newbie to Java and JavaHelp, so please be brutally explicit
> with any help you may have for me.
>
> I've been assigned the task of deciding which route to go to merge
> all of our helpsets for a single TOC view. I have the dynamic merge
> working, and that's great. But the static merge has a problem:
>
> I have a dataless master helpset file with a to test the
> static merge. TOC navigation is fine, and we haven't implemented the
> index yet, so no problem there, but when I try to search, I get the
> little clock for a cursor and nothing is ever displayed in the search
> pane. No exceptions are thrown, either, but one message does appear
> after the command line:
>
> MergineSearchEngine: startSearch()
>
> I have tried this with the helpsets inside jars, outside jars, in
> different paths, but I always get the same error. I did get a
> different result when using a data-full master helpset, but it still
> didn't work as expected. The only search results I got were from the
> master helpset, none from the subhelpset.
>

The problem has been fixed and will appear in V2.0.1 which is currently
scheduled for early October. The bug number is 4927588. The problem was
in BasicSearchNavigaorUI was incorrectly calling the local method
merge(NavigatorView) instead of searchnav.merge(NavigatorView). This
caused the added subHelpSet to not get added to the MergeSearchEngine.
This bug only occurs when the merged helpset is merged in before
JHelpSearchNaviagor is realized.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.