Hi all<div><br></div><div>I'm trying to search the headings of a particular book (say ESV).</div><div><br></div><div>I'm using the following query "heading:*water*" which I was hoping should match "Jesus walks on Water" (case doesn't seem to make a difference).</div>
<div><div><br></div><div>My code is simply: bible.find(new DefaultSearchRequest(query, modifier));</div></div><div><br></div><div>Has anyone else managed to get this working?</div><div><br></div><div>Chris</div><div><br></div>
<div><br></div><div><br></div><div><div>final long start = System.currentTimeMillis();</div><div><br></div><div> final DefaultSearchModifier modifier = new DefaultSearchModifier();</div><div> modifier.setRanked(ranked);</div>
<div> modifier.setMaxResults(MAX_RESULTS);</div><div><br></div><div> final Book bible = this.av11nService.getBookFromVersion(version);</div><div><br></div><div> try {</div><div><br></div><div> final Key results;</div>
<div><br></div><div> // TODO JS-228 raised for thread-safety</div><div> synchronized (this) {</div><div> results = bible.find(new DefaultSearchRequest(query, modifier));</div><div> }</div>
<div><br></div><div> LOGGER.debug("[{}] verses found.", results.getCardinality());</div><div><br></div><div> if (ranked) {</div><div> rankAndTrimResults(results, MAX_RESULTS);</div>
<div> } else {</div><div> trimResults(results, MAX_RESULTS);</div><div> }</div><div> LOGGER.debug("Trimmed down to [{}].", results.getCardinality());</div><div><br>
</div><div> final long startRefs = System.currentTimeMillis();</div><div> final List<SearchEntry> resultPassages = getPassagesForResults(bible, results);</div><div> final long endRefs = System.currentTimeMillis();</div>
<div><br></div><div> return getSearchResult(query, start, startRefs, endRefs, resultPassages);</div><div> } catch (final BookException e) {</div><div> throw new StepInternalException("Unable to search for " + query + " with Bible " + version, e);</div>
<div> }</div></div>