[jsword-devel] Searches and restrictions

Chris Burrell chris at burrell.me.uk
Tue Sep 4 05:14:43 MST 2012


My presumption was wrong. This only affects ranked searches, because
"non-ranked" searches do no use the TopScoreCollector and thereby
completely ignore the searchModifier (possibly a bug? since maxResults is
ignored?)

Chris




On 4 September 2012 11:05, Chris Burrell <chris at burrell.me.uk> wrote:

> This only seems to affect ranked searches. Presumably because JSword
> restricts the Lucene range if it ordered by Passage.
>
>
> On 4 September 2012 11:01, Chris Burrell <chris at burrell.me.uk> wrote:
>
>> Hi
>>
>> Not sure if this is a  bug, but thought it worth mentioning here. The
>> restrictions to passages in searches don't play well with the MaxResults on
>> the DefaultSearchModifier. In my case, I'm looking at +[John 4] with and my
>> user interface shows the first 50 results on each page.
>>
>>  final DefaultSearchModifier modifier = new DefaultSearchModifier();
>> modifier.setMaxResults(50);
>> modifier.setRanked(true);
>>
>> bible.find("water +[John 4]");
>>
>> Unfortunately, that only gives me back 2 results, because the other 48
>> are not the in the first 50 retrieved by Lucene.
>>
>> Chris
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20120904/43868a57/attachment.html>


More information about the jsword-devel mailing list