<div>I’m using PocketSword.<caret></caret></div><div><br></div><div>The NASB module has no downloadable search index so I can’t do a direct comparison. </div><div><br></div><div>I therefore used the same two words to search the NETfree module with scope limited to Matthew. </div><div><br></div><div>It found only 7 verses containing both words. The nearest is 9:22</div><div><br></div><div>I can send a screenshot off list to anyone interested. </div><div><br></div><div>David</div><div><br></div><div id="protonmail_mobile_signature_block"><div>Sent from ProtonMail Mobile</div></div> <div><br></div><div><br></div>On Mon, May 4, 2020 at 22:10, Troy A. Griffitts <<a href="mailto:scribe@crosswire.org" class="">scribe@crosswire.org</a>> wrote:<blockquote class="protonmail_quote" type="cite">
<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">
<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">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">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
</blockquote><div><br></div><div><br></div>