[sword-svn] r1936 - trunk/examples/cmdline
scribe at crosswire.org
scribe at crosswire.org
Thu Jun 29 23:00:23 MST 2006
Author: scribe
Date: 2006-06-29 23:00:22 -0700 (Thu, 29 Jun 2006)
New Revision: 1936
Modified:
trunk/examples/cmdline/search.cpp
Log:
Change search back to use multiword and turn on strongs
to allow searching for these
Modified: trunk/examples/cmdline/search.cpp
===================================================================
--- trunk/examples/cmdline/search.cpp 2006-06-30 05:37:16 UTC (rev 1935)
+++ trunk/examples/cmdline/search.cpp 2006-06-30 06:00:22 UTC (rev 1936)
@@ -46,6 +46,7 @@
SWBuf searchTerm = argv[2];
manager.setGlobalOption("Greek Accents", "Off");
+ manager.setGlobalOption("Strong's Numbers", "On");
manager.filterText("Greek Accents", searchTerm);
it = manager.Modules.find(argv[1]);
@@ -74,7 +75,7 @@
* -3 - entryAttrib (eg. Word//Strongs/G1234/)
* -4 - Lucene
*/
- listkey = target->Search(searchTerm.c_str(), -4, /*SEARCHFLAG_MATCHWHOLEENTRY*/ REG_ICASE, 0, 0, &percentUpdate, &lineLen);
+ listkey = target->Search(searchTerm.c_str(), -2, /*SEARCHFLAG_MATCHWHOLEENTRY*/ REG_ICASE, 0, 0, &percentUpdate, &lineLen);
std::cout << "\n";
listkey.sort();
while (!listkey.Error()) {
More information about the sword-cvs
mailing list