Page 1 of 1
setting up for Japanese search indexing
Posted: Tue Oct 04, 2016 8:38 pm
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.)
Re: setting up for Japanese search indexing
Posted: Wed Oct 05, 2016 11:20 am
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.
Re: setting up for Japanese search indexing
Posted: Fri Oct 14, 2016 5:39 am
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.
Re: setting up for Japanese search indexing
Posted: Fri Oct 14, 2016 12:21 pm
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?
Re: setting up for Japanese search indexing
Posted: Mon Oct 17, 2016 9:26 am
by Eddie
I have indeed.
I did it a while ago to check something and forgot about it.
Thanks again.
Eddie