<div dir="ltr">I have noticed that occasionally some search results are missing when a filter is applied e.g find 'light' in Gospel of John only.<div><br></div><div>E.g. search text: '+[John] +light' returns only 4 results. It should return 16 results.</div>
<div><br></div><div>I have done a bit of analysis and narrowed the problem down to And Bible using RangedPassage via PassageKeyFactory.setDefaultType(PassageType.MIX). If I switch back to the default passage type I get the correct results.</div>
<div><br></div><div>The JSword search classes eventually calls: AndQuery.find() </div><div>which has: left.retainAll(right);</div><div>which calls: RangedPassage.retainAll</div><div><br></div><div>I think the error might have already occurred in the left value above or in retainAll. I need to do some more debugging but if anybody has any suggestions as to what might be wrong I would be grateful.</div>
<div><br></div><div>Martin<br></div></div>