<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Troy,</p>
<p>I tried this now, but it is not working as intended. In case of
my example it is related to Headings.</p>
<p>These are my steps:</p>
<p>1) I am using a SWMgr for search where Headings are turned off:
mgr->setGlobalOption("Headings", "Off");<br>
2) I am searching the NASB with a Multi Word Search
(SWModule::SEARCHTYPE_MULTIWORD) and the search term is "cities".<br>
3) I get Judges 1:11 as a result, but I do not expect that. When
you check you see that the previous headline is "Capture of Other
Cities". So the headline is matching, but not the verse content.</p>
<p>When I use the exact phrase search (SWModule::SEARCHTYPE_PHRASE)
in NASB with the search term "cities", then Judges 1:11 is not
part of the search results.</p>
<p>What is the explanation for this behavior?<br>
<br>
Best regards,<br>
Tobias<br>
<br>
</p>
<div class="moz-cite-prefix">On 12/17/22 11:23 AM, Troy A. Griffitts
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:D6BCB8DC-8B06-4598-B06E-D3709EDCB78C@crosswire.org">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi Tobias. Sure. If you turn off the Footnotes option filter
during a search, you should see results without footnotes hits. In
the frontends I write, I will often keep a display SWMgr and a
search SWMgr around configured accordingly.<br>
<br>
Also, I believe an indexed search is configured to not include
footnotes. If you are compiling with clucene support you can use
the mkfastmod utility to build the indexes or have a look in its
source for the methods to call from within your app.<br>
<br>
<a
href="https://crosswire.org/svn/sword/trunk/utilities/mkfastmod.cpp"
moz-do-not-send="true">https://crosswire.org/svn/sword/trunk/utilities/mkfastmod.cpp</a><br>
<br>
Hope this helps,<br>
<br>
Troy<br>
<br>
<div class="gmail_quote">On December 17, 2022 2:58:20 AM MST,
Tobias Klein <a class="moz-txt-link-rfc2396E" href="mailto:contact@tklein.info"><contact@tklein.info></a> wrote:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<pre dir="auto" class="k9mail">Dear Troy,
I noticed that the SWORD module search functionality also searches the content of footnotes.
Is it possible to make this configurable in the SWModule::search function?
Best regards,
Tobias<hr>sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a href="http://crosswire.org/mailman/listinfo/sword-devel" moz-do-not-send="true">http://crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page
</pre>
</blockquote>
</div>
<div class="k9mail-signature">-- <br>
Sent from my Android device with K-9 Mail. Please excuse my
brevity.</div>
</blockquote>
</body>
</html>