David, thanks for your example. This helped a lot.
Couple of things.
1/ You needed to declare the jar files you were using, this is done
using "jarlist" attribute.
2/ mutiple jar files in this actually spotted a wee bug in OpenBD, which
i have now fixed and will appear in the nightly build (which will happen
in the next couple of hours).
Here is the full example that works:
<cfscript language="java"
jarlist="lucene-core-3.5.0.jar,lucene-analyzers-3.5.0.jar">
import org.apache.lucene.util.Version;
import org.apache.lucene.analysis.es.SpanishAnalyzer;
SpanishAnalyzer sp = new SpanishAnalyzer(Version.LUCENE_35);
</cfscript>
On 26/03/2012 17:46, David G Ortega wrote:
Hi Alan,
I have tried again the java thing and it does not work. I'm using the desktop
version. The packages are accesible with plain createObject but not with
embedded java. Here is the response. Can you try this simple code?
<cfscript language="java">
import org.apache.lucene.util.Version;
import org.apache.lucene.analysis.es.SpanishAnalyzer;
SpanishAnalyzer sp = new SpanishAnalyzer(Version.LUCENE_35);
</cfscript>
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en