Hi Troy,

I tried this now, but it is not working as intended. In case of my example it is related to Headings.

These are my steps:

1) I am using a SWMgr for search where Headings are turned off: mgr->setGlobalOption("Headings", "Off"); 2) I am searching the NASB with a Multi Word Search (SWModule::SEARCHTYPE_MULTIWORD) and the search term is "cities". 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.

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.

What is the explanation for this behavior?

Best regards,
Tobias

On 12/17/22 11:23 AM, Troy A. Griffitts wrote:
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.

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.

https://crosswire.org/svn/sword/trunk/utilities/mkfastmod.cpp <https://crosswire.org/svn/sword/trunk/utilities/mkfastmod.cpp>

Hope this helps,

Troy

On December 17, 2022 2:58:20 AM MST, Tobias Klein <cont...@tklein.info> wrote:

    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
    ------------------------------------------------------------------------
    sword-devel mailing list: sword-devel@crosswire.org
    http://crosswire.org/mailman/listinfo/sword-devel  
<http://crosswire.org/mailman/listinfo/sword-devel>
    Instructions to unsubscribe/change your settings at above page

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to