<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Tobias,</p>
<p>This should be documented a bit better, but I believe we have a
configurable verse window which is searched, which I believe
defaults to 2 verses. The thinking behind this is that
occasionally, verse divisions artificially separate a common
clause-- often breaking up a single sentence into multiple
segments.</p>
<p>I'd have to look to remember the details, but have a look in
SWModule::search if you'd like the detail. I will add it to my
todo list to improve the docs in swmodule.h</p>
<p>Troy</p>
<p> <br>
</p>
<div class="moz-cite-prefix">On 5/4/20 1:15 PM, Tobias Klein wrote:<br>
</div>
<blockquote type="cite"
cite="mid:48ebb23c-6129-08e1-689d-919063fb182a@tklein.info">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hi,</p>
<p>I have the impression that the SWORD multi word search is
returning some results that actually do not seem to match the
search term.</p>
<p>For example when searching for the term "faith Jesus" in the
NASB module I get 86 results.</p>
<p>The first result that seems invalid is Matthew 9:28:</p>
<p><sup>28</sup> When He entered the house, the blind men came
up to Him, and Jesus said to them, " “Do you believe that I am
able to do this?”" They said to Him, “Yes, Lord.”</p>
<p>This verse matches only part of the multi word term, namely
"Jesus".</p>
<p>Matthew 9:29 is also returned as a result and this verse
interestingly only matches the other part of the term ("faith"):</p>
<p><sup>29</sup> Then He touched their eyes, saying, "
“It shall be done to you according to your faith.”"</p>
<p>What is happening here? My assumption would be that only verses
containing both parts of the multi word term should be returned
if the searchType is multiWord (-2). Is this a bug?</p>
<p>The code can be found here: <a
href="https://github.com/tobias-klein/node-sword-interface/blob/master/src/sword_backend/module_search.cpp#L121"
moz-do-not-send="true">https://github.com/tobias-klein/node-sword-interface/blob/master/src/sword_backend/module_search.cpp#L121</a></p>
<p>Best regards,<br>
Tobias<br>
</p>
<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" moz-do-not-send="true">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel" moz-do-not-send="true">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
</body>
</html>