Skip to main content

[JAVAHELP] Merging Search in HelpSets?

5 replies [Last post]
Anonymous

Reply viewing options

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

Ok, I just want to say a big thank you to all that helped me in my trouble
with merging the search-databases. Especially Roger Brinkley and Craig
Sandvik!

No after I know how it works, I can see it was quite obvious, but it wasn't
earlier ;-)

Problem was that I had same name on the Search-folders...
I had tried it but then I also had changed the path to it etc. so when I got
all pieces correct it worked.

Per

-----Original Message-----
From: Discussion list of JavaHelp
[mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]On Behalf Of Craig Sandvik
Sent: fredag november 21, 2003 20:30
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVAHELP] Merging Search in HelpSets?

>Per Lundkvist wrote:
>>We have succeeded in merging different HelpSets with our "master"-helpset,
>>but the search only works for the "master"-helpset, it does not find any
>>hits in the subhelpsets...why?

I haven't followed too closely, and I seem to be getting bits of
the thread in random order, but one thing to watch out for is
you need different directory names for the search database
location when you statically merge helpsets into a master helpset.
Otherwise, you have the same filenames in the same location,
and you only see hits from the database that got placed there
last.

Craig Sandvik
Sybase

_________________________________________________________________
Gift-shop online from the comfort of home at MSN Shopping! No crowds, free
parking. http://shopping.msn.com

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

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.

Craig Sandvik

>Per Lundkvist wrote:
>>We have succeeded in merging different HelpSets with our "master"-helpset,
>>but the search only works for the "master"-helpset, it does not find any
>>hits in the subhelpsets...why?

I haven't followed too closely, and I seem to be getting bits of
the thread in random order, but one thing to watch out for is
you need different directory names for the search database
location when you statically merge helpsets into a master helpset.
Otherwise, you have the same filenames in the same location,
and you only see hits from the database that got placed there
last.

Craig Sandvik
Sybase

_________________________________________________________________
Gift-shop online from the comfort of home at MSN Shopping! No crowds, free
parking. http://shopping.msn.com

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

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.

Roger Brinkley

Craig Sandvik wrote:
> I haven't followed too closely, and I seem to be getting bits of
> the thread in random order, but one thing to watch out for is
> you need different directory names for the search database
> location when you statically merge helpsets into a master helpset.
> Otherwise, you have the same filenames in the same location,
> and you only see hits from the database that got placed there
> last.

This shouldn't be needed unless all of the Helpsets are in the same
directory hierarchy. If they aren't then it isn't a problem and you need
separate names.

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.

Per Lundkvist

Hmm ok that I have not tried...but it will only affect the Index,right?
My BIG problem is that the search only searches and give results from the
Master Helpset and not any subhelpsets.

Thank you!

Per

-----Original Message-----
From: Chris.Morris@saaconsultants.com
[mailto:Chris.Morris@saaconsultants.com]
Sent: fredag november 21, 2003 16:09
To: per.lundkvist@comsol.se
Subject: Re: [JAVAHELP] Merging Search in HelpSets?

How and where are you set the mergetype for the Index view on the master
helpset (the default mergetype for the Index is AppendMerge)? Try specify
the mergetype in the master help set and not the subhelpset, or have you
tried that already?

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

Per Lundkvist

JAVAHELP-INTEREST@JAVA.SUN.COM
se> cc:
Sent by: Discussion Subject: Re:
[JAVAHELP] Merging Search in HelpSets?
list of JavaHelp
A.SUN.COM>

21/11/2003 14:10
Please respond to
per.lundkvist

Ok I have now tried everything it seems to get my search to not only search
in master-helpset-content.
It will not work?!?
This should work automatically it says in the manual ;-) But it won't...

Please help me!
Below is my MasterHelpset that includes the SubHelpset dynamically from
Java-coding.
The TOC gets ok and everything except this search, and also Index is not
"SortMerged" but it should be...

================================================================
====================== MY MASTER HS ============================
================================================================


PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN"
"http://java.sun.com/products/javahelp/helpset_2_0.dtd">


A_NAME Documentation

testindex


TOC

javax.help.TOCView
test30totaltoc.xml
book


favorites

javax.help.FavoritesView
favorites


Index

javax.help.IndexView
test30totalIX.xml
index


Search

javax.help.SearchView

JavaHelpSearch

search

A_NAME30 A_NAME Documentation test_icon javax.help.HomeAction javax.help.BackAction javax.help.ForwardAction javax.help.PrintSetupAction javax.help.PrintAction javax.help.FavoritesAction javax.help.ReloadAction

================================================================
====================== MY SUB HS ===============================
================================================================


PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN"
"http://java.sun.com/products/javahelp/helpset_2_0.dtd">


A_NAME Documentation

sub_index


TOC

javax.help.TOCView
sub_TOC.xml
book


favorites

javax.help.FavoritesView
favorites


Index

javax.help.IndexView
sub_IX.xml
index


Search

javax.help.SearchView
engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch
search

sub_30 A_NAME Documentation test_icon javax.help.HomeAction javax.help.BackAction javax.help.ForwardAction javax.help.PrintSetupAction javax.help.PrintAction javax.help.FavoritesAction javax.help.ReloadAction

/
Per

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

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.

Roger Brinkley

Per Lundkvist wrote:

> Ok I have now tried everything it seems to get my search to not only
> search in master-helpset-content. It will not work?!? This should
> work automatically it says in the manual ;-) But it won't...
>
...

>
> ================================================================
> ====================== MY MASTER HS ============================
> ================================================================
>
> Search
> javax.help.SearchView > engine="com.sun.java.help.search.DefaultSearchEngine"> JavaHelpSearch
> search

...

> ================================================================
> ====================== MY SUB HS ===============================
> ================================================================
...
> Search
> javax.help.SearchView > engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch
> search

It could be related to the following 2 bugs that were fixed in V2.0_01.
While your situation is specific to dynamic merging there could be an
unknown side effect that is causing the problem so I recommend an
upgrade to 2.0_01.

# Bug 4923782 - SortMerge was not handling a dataless master navigator
(a master navigator with no elements) correctly. The symptom was that
the navigator being merged had nothing in it after the sort merge. This
bug has been fixed. Now, when a sort merge is performed, a subhelpset
navigator can populate a master navigator with data. One effect of this
fix is that a subhelpset can add new master elements, and merges of
subsequent subhelpsets with matching elements will then have those
elements merged into these new master elements as though the new
elements were originally part of the master helpset.

# Bug 4927588 - Search on statically merged helpsets was working only
for the master helpset. Now search works for all helpsets statically
merged into a helpset.

If that doesn't fix it, test each of the helpsets search capabilities
individually. You can try them in the helpset viewer first. If the
subhelpsets work in the hsviewer then try the new merge demo and merge
in your subhelpset. Since the Animals demo search view is named "Search"
your subhelpset should merge fine in a dynamic simulation. If that works
then the problem is related to either the merging in the program or is a
classpath problem related to the subhelpset.

Also note that there is no need the tag in subhelpsets unless
it's possible for the helpset to be displayed independently from the
master helpset.

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.