Hi<div><br></div><div>Using a normal ranked search, I seem to be hitting some bug for a "strong" search. If I search for g0016, G016 or G16 I get results back. For G0016 however, it comes back with nothing.</div>
<div><br></div><div>Code I used is below. Any ideas? The obvious work around is to do things in lower case, but I assume that is a bug?</div><div>Chris</div><div><br></div><div><br></div><div><br></div><div><br></div><div>
<div>final DefaultSearchModifier modifier = new DefaultSearchModifier();</div><div><br></div><div> modifier.setRanked(true);</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> final Key results = bible.find(new DefaultSearchRequest(query, modifier));</div><div><br></div><div> final List<SearchEntry> resultPassages = new ArrayList<SearchEntry>();</div>
<div> final Iterator<Key> rangeIter = ((Passage) results).rangeIterator(RestrictionType.CHAPTER);</div><div> // boundaries.</div><div> while (rangeIter.hasNext()) {</div><div> final Key range = rangeIter.next();</div>
<div> final BookData data = new BookData(bible, range);</div><div> final String canonicalText = OSISUtil.getCanonicalText(data.getOsisFragment());</div><div> resultPassages.add(new SearchEntry(range.getName(), canonicalText));</div>
<div> }</div><div><br></div><div> final SearchResult r = new SearchResult();</div><div> r.setResults(resultPassages);</div><div> r.setQuery(query);</div><div> r.setMaxReached(MAX_RESULTS == resultPassages.size());</div>
<div><br></div><div> return r;</div><div> } catch (final BookException e) {</div><div> throw new StepInternalException("Unable to search for " + query + " with Bible " + version, e);</div>
<div> }</div></div>