[jsword-devel] [JIRA] Created: (JS-156) APIExamples does not work correctly
Joe Kumar
joekumar at gmail.com
Tue Jan 4 20:02:46 MST 2011
Hi DM,
I am assuming you meant modifier.setMaxResults(20) ?
In APIExamples.java for rankedSearch(), adding modifier.setMaxResults(20)
helps fix the OOM error.
But now, I am getting the below error
org.crosswire.jsword.index.lucene.LuceneIndex(INFO):
ParsedQuery-content:melchesidec~0.5
Exception in thread "main" java.util.MissingResourceException: Cannot find
resource: xsl/cswing/simple.xsl
at org.crosswire.common.util.ResourceUtil.getResource(ResourceUtil.java:74)
at org.crosswire.common.util.ResourceUtil.getResource(ResourceUtil.java:57)
at org.crosswire.jsword.examples.APIExamples.searchAndShow(
APIExamples.java:286)
at org.crosswire.jsword.examples.APIExamples.main(APIExamples.java:471)
thanks,
Joe.
On Tue, Jan 4, 2011 at 12:21 PM, DM Smith (JIRA) <jira at crosswire.org> wrote:
> APIExamples does not work correctly
> -----------------------------------
>
> Key: JS-156
> URL: http://www.crosswire.org/bugs/browse/JS-156
> Project: JSword
> Issue Type: Bug
> Affects Versions: 1.6
> Reporter: DM Smith
> Assignee: DM Smith
> Fix For: 1.6.1
>
>
> APIExamples has two problems:
> * The search for "God so loved the world" in the KJV results in an OOM
> exception. Need to add modifier.setMaxHits(20).
> * The search for "moses AND aaron" does not check for null on remaining
> verses.
>
>
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://www.crosswire.org/bugs/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20110104/19405350/attachment.html>
More information about the jsword-devel
mailing list