<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi all,</p>
<p>Just to close this loop ... I found the root-cause of this bug
... and fixed it in node-sword-interface.</p>
<p>The reason was that when determining the ListKey for the search
scope, the versification of the basic VerseKey was always the KJV
one. I fixed this by retrieving the VerseKey from the searched
module instead of using a "generic one".</p>
<p>Best regards,<br>
Tobias<br>
</p>
<div class="moz-cite-prefix">On 12/30/21 1:53 PM, Tobias Klein
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:E1n2uvK-0002Ru-C3@smtprelay08.ispgateway.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}.MsoChpDefault
{mso-style-type:export-only;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Troy & all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I hope you all had a
merry Christmas with your families and friends!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’ve been encountering a
weird search bug and I suspect it’s somewhere in the SWORD
engine.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here is how I get it:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Given I use the module
GerNeUe<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And I set the search
scope to NT books<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And I use the search
term “Herrschaft”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And I perform an “Exact
phrase” search<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Then all search results
are slightly offset (by 1 verse) starting from Acts 20:24
(should be Acts 20:25) and ending at Revelation 12:9 (should
be 12:10) whereas the search results before and after these
verses are fine.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If I perform the same
search not limiting the search scope, I get correct results.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Could this be related to
versification differences?<br>
I know that for example in Acts there is a slight
versification difference starting in 19:41 and in Revelation
there is a versification difference starting in 12:17 (they
balance each other out). Therefore the search results are
probably fine again in Revelation.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<br>
Tobias<o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://crosswire.org/mailman/listinfo/sword-devel">http://crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
</body>
</html>