Skip to main content

Problem with search (jhindexer)

2 replies [Last post]
Anonymous

I have a client who cannot generate the search database. When she runs
jhindexer, she gets the exception, "Can't store document".

What are the situations in which the jhindexer command will fail? Will it
work only on helpsets under a certain size? Are there specific characters
that cause problems?

Thanks.

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

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.
Michael Leacher

James,

I've just spent several days dealing with just this problem.

In my case, I was trying to index Japanese-localized HTML files, using JH 1.1.3 and JDK 1.4.2_04.

I kept getting the same result under different versions of Windows: 2000, XP, and Japanese 2000.

What appeared to be causing the problem was the tag at the head of each HTML document:

The exceptions stopped when I eliminated this tag altogether, or changed it to:

Also, FYI it is recommended that when indexing languages that are not the same as the default language on the machine you're using, to use the -locale parameter to the jhindexer command, for example,

%JAVA_HOME%\java -jar %JAVAHELP_HOME%\jhindexer.jar -locale ja_JP -db search_database_location -logfile logfile_location_and_filename file_spec_of_files_to_index

In this example, the locale is set to Japanese. For another language, you need to use language- and country- specific codes for that language.

Hope this helps.

Michael Leacher

*----------------------------------------------
You wrote to the javahelp-interest list:

I have a client who cannot generate the search database. When she runs
jhindexer, she gets the exception, "Can't store document".

What are the situations in which the jhindexer command will fail? Will it
work only on helpsets under a certain size? Are there specific characters
that cause problems?

Thanks.

*------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Michael Leacher
Online Information Architect
781.464.8355
Novell, Inc., the leading provider of Net Business Solutions
www.novell.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

James Lowther wrote:

> I have a client who cannot generate the search database. When she runs
> jhindexer, she gets the exception, "Can't store document".
>
> What are the situations in which the jhindexer command will fail? Will it
> work only on helpsets under a certain size? Are there specific characters
> that cause problems?

Using an older version of JavaHelp with JDK1.3 or later I think caused
this problem.

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.