setting up for Japanese search indexing

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
jbisso
Posts: 3

setting up for Japanese search indexing

Tue Oct 04, 2016 8:38 pm

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: 327
Location: Craiova

Re: setting up for Japanese search indexing

Wed Oct 05, 2016 11:20 am

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: 92

Re: setting up for Japanese search indexing

Fri Oct 14, 2016 5:39 am

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: 327
Location: Craiova

Re: setting up for Japanese search indexing

Fri Oct 14, 2016 12:21 pm

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: 92

Re: setting up for Japanese search indexing

Mon Oct 17, 2016 9:26 am

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

Thanks again.

Eddie

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 4 guests