Skip to main content

[JAVAHELP] Merging Search in HelpSets?

2 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 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.

Per Lundkvist

Ok, I have the 2.0 version and header that you showed, BUT I had version="1.0">, so I change this to and see what
happens...

Thank you!

Per

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

I admit to having had little experience with dynamic merging, but as far as
I'm aware there is fundamentally little difference between static and
dynamic in how the helpsets are defined.

What version of JavaHelp are you using (suppose I should have asked this
first really)?

Does your master helpset file contain the following headers?


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

You shouldn't need the tag defined in the Search View of the Master
helpset file, as merging is attempted purely by the presence on the Search
View being present. However, if you do specify it, you must have a valid
Search database for the Master Helpset to use.
This particular issue appeared as a bug in V2.0 but was fixed in V2.0_01
(see jhV2.0_01 readme file - Bug 4923782).

Oh, and one other thing which 'may' cause a problem: Are your merged
helpsets created with an earlier version of JavaHelp? If so, definitely
re-compile the Search databases for all you helpsets, using V2.0_01. I had
several instances where merging failed due to this (something which is NOT
mentioned in the JHUG!).

> So which merge type should I use for Index?
Use SortMerge. I did have a problem with correct SortMerging at one stage,
the cause of which was identified as an incorrectly defined Index entry in
one of the merged helpsets. So ensure all your helpsets are OK first.

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

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

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.