Hi DM,<div><br></div><div>I am assuming you meant modifier.setMaxResults(20) ?</div><div>In APIExamples.java for rankedSearch(), adding <meta charset="utf-8">modifier.setMaxResults(20) helps fix the OOM error.</div><div><br>
</div><div>But now, I am getting the below error</div><div><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.35">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #ff0000}
span.s1 {text-decoration: underline ; color: #190094}
span.Apple-tab-span {white-space:pre}
</style>
<p class="p1">org.crosswire.jsword.index.lucene.LuceneIndex(INFO): ParsedQuery-content:melchesidec~0.5</p>
<p class="p1"> Exception in thread "main" <span class="s1">java.util.MissingResourceException</span>: Cannot find resource: xsl/cswing/simple.xsl</p>
<p class="p1"><span class="Apple-tab-span">        </span>at org.crosswire.common.util.ResourceUtil.getResource(<span class="s1">ResourceUtil.java:74</span>)</p>
<p class="p1"><span class="Apple-tab-span">        </span>at org.crosswire.common.util.ResourceUtil.getResource(<span class="s1">ResourceUtil.java:57</span>)</p>
<p class="p1"><span class="Apple-tab-span">        </span>at org.crosswire.jsword.examples.APIExamples.searchAndShow(<span class="s1">APIExamples.java:286</span>)</p>
<p class="p1"><span class="Apple-tab-span">        </span>at org.crosswire.jsword.examples.APIExamples.main(<span class="s1">APIExamples.java:471</span>)</p><p class="p1"><br></p></div><div>thanks,</div><div>Joe.<br><br><div class="gmail_quote">
On Tue, Jan 4, 2011 at 12:21 PM, DM Smith (JIRA) <span dir="ltr"><<a href="mailto:jira@crosswire.org">jira@crosswire.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
APIExamples does not work correctly<br>
-----------------------------------<br>
<br>
Key: JS-156<br>
URL: <a href="http://www.crosswire.org/bugs/browse/JS-156" target="_blank">http://www.crosswire.org/bugs/browse/JS-156</a><br>
Project: JSword<br>
Issue Type: Bug<br>
Affects Versions: 1.6<br>
Reporter: DM Smith<br>
Assignee: DM Smith<br>
Fix For: 1.6.1<br>
<br>
<br>
APIExamples has two problems:<br>
* The search for "God so loved the world" in the KJV results in an OOM exception. Need to add modifier.setMaxHits(20).<br>
* The search for "moses AND aaron" does not check for null on remaining verses.<br>
<br>
<br>
<br>
--<br>
This message is automatically generated by JIRA.<br>
-<br>
If you think it was sent incorrectly contact one of the administrators: <a href="http://www.crosswire.org/bugs/secure/Administrators.jspa" target="_blank">http://www.crosswire.org/bugs/secure/Administrators.jspa</a><br>
-<br>
For more information on JIRA, see: <a href="http://www.atlassian.com/software/jira" target="_blank">http://www.atlassian.com/software/jira</a><br>
<br>
<br>
<br>
_______________________________________________<br>
jsword-devel mailing list<br>
<a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
</blockquote></div><br><br clear="all"><br><br>
</div>