<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thank you, Troy! I appreciate it.<br>
</p>
<p>I'm using this new search flag now and I'm getting exactly the
results that I would expect.</p>
<p>I think it's a good idea to make this configurable. I'm now also
considering to add an option to my user interface to be able to
toggle this option.</p>
<p>Tobias<br>
<br>
</p>
<div class="moz-cite-prefix">On 5/5/20 2:00 AM, Troy A. Griffitts
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:aade416f-9a91-4126-c344-b5726953f6bd@crosswire.org">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Dear Tobias,</p>
<p>I have spent a bit of time documenting this a bit better in
trunk and have added a new flag (SEARCHFLAG_STRICTBOUNDARIES) to
turn off the default behavior to use a sliding window to find
results.</p>
<p>When performing a multiword (non-indexed) search with the NASB
using your 2 terms, I now get these hit counts:<br>
</p>
<p>no flags: 86</p>
<p>REG_ICASE: 93</p>
<p>REG_ICASE | SEARCHFLAG_STRICTBOUNDARIES: 51</p>
<p><br>
</p>
<p>Hope this helps,</p>
<p>Troy</p>
<p><br>
</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>
<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>
</body>
</html>