setting up for Japanese search indexing

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jbisso
Posts: 4
Joined: Fri Mar 29, 2013 5:03 pm

setting up for Japanese search indexing

Post by jbisso »

Followed the instructions on https://www.oxygenxml.com/doc/versions/ ... bhelp.html

Builds (WebHelp server builds) still does not recognize the Kuromoji library in the plug-in's lib directory. After some investigation, I added a line <param> element to the build_common.xml script: line after 259 referring to the JAR file. Can I assume this step was missing on the instructions page? (Build now prints out that it has found and loaded the library.)
Jim Bisso
DataStax
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: setting up for Japanese search indexing

Post by radu_pisoi »

Hi,

Thank you for reporting this issue.

Yes, you are right. The DITA_OT_DIR/plugins/com.oxygenxml.webhelp/build_common.xml script should be modified to add the Kuromoji library to the classpath of the oXygen WebHelp indexer.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Eddie
Posts: 106
Joined: Wed Dec 18, 2013 3:07 am

Re: setting up for Japanese search indexing

Post by Eddie »

Hello,

I put the jar file in the lib folder and added a line under line 259 mentioned by jbisso as shown below, but I still got OXYWH001W.

Code: Select all


<pathelement path="${webhelp.lib.dir}/lucene-analyzers-kuromoji-4.0.0.jar"/>
After a bit of trial and error, I found I had to put the jar file in "oXygen-Install-Directory/lib", not in "DITA_OT_DIR/plugins/com.oxygenxml.webhelp/lib"

It seems to be working (OXYWH001W doesn't appear), but I'd like to know if there's any reason for the difference in lib folder.

Cheers,
Eddie.
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: setting up for Japanese search indexing

Post by radu_pisoi »

Hi,

Please note that the oXygen 18.0 comes bundled with two DITA-OT distributions: 1.8.5 and 2.2.3. The DITA-OT 1.8.5 is installed in: [OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT directory, whereas DITA-OT 2.2.3 is installed in
[OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x folder. See a related topic in our documentation:
http://oxygenxml.com/doc/versions/18.0/ ... t-dir.html

The default DITA-OT distribution in oXygen 18 is DITA-OT 2.2.3. This option could be changed from oXygen Preferences, DITA option page.

So, a possible reason why the above procedure does not work in your case is that you have modified in the preferences of DITA-OT 1.8 and you are using DITA-OT 2.2.3.

Is this your case?
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Eddie
Posts: 106
Joined: Wed Dec 18, 2013 3:07 am

Re: setting up for Japanese search indexing

Post by Eddie »

I have indeed.
I did it a while ago to check something and forgot about it.

Thanks again.

Eddie
Post Reply