Skip to main content

Re: [JAVAHELP] Search freezes in statically merged helpsets - v2.0

1 reply [Last post]
Anonymous

There's a bug in the jh2.0 final release, but which has apparently been
fixed and will be available in the next release (when ????).

The bug causes problems with static merging, in particular:
You cannot use a dataless helpset (despite the jhug indicating that you
can).
The mergetype="javax.help.SortMerge doesn't work (although it did in the
CR2 release).

As a result:
You must specify a element within each view of your
helpset.
You cannot override the default merge type for an Index view
(AppendMerge) with SortMerge.
The Search view effectively ceases to work at all (since it's default
mergetype is SortMerge).

See Previous postings for more info.

Hope this helps.

====================================================
Chris Morris
Technical Author
SAA Consultants Ltd
http://www.saaconsultants.com
http://www.reims.net
====================================================

java-help@JAVADESKTOP.
ORG To: JAVAHELP-INTEREST@JAVA.SUN.COM
Sent by: Discussion cc:
list of JavaHelp Subject: [JAVAHELP] Search freezes in statically

17/09/2003 23:01
Please respond to
javahelp-interest

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

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

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.

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

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.

Reply viewing options

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

Chris Morris wrote:
> There's a bug in the jh2.0 final release, but which has apparently been
> fixed and will be available in the next release (when ????).
>
> The bug causes problems with static merging, in particular:
> You cannot use a dataless helpset (despite the jhug indicating that you
> can).
> The mergetype="javax.help.SortMerge doesn't work (although it did in the
> CR2 release).
>
> As a result:
> You must specify a element within each view of your
> helpset.
> You cannot override the default merge type for an Index view
> (AppendMerge) with SortMerge.
> The Search view effectively ceases to work at all (since it's default
> mergetype is SortMerge).
>
> See Previous postings for more info.

V2.0.1 will be released in October. SortMerge does work as long as you
don't have a dataless helpset. The SearchView is another issue that will
be addressed in V2.0.1

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.