[sword-svn] r1842 - in trunk: examples/cmdline include

scribe at crosswire.org scribe at crosswire.org
Mon Aug 1 08:24:19 MST 2005


Author: scribe
Date: 2005-08-01 08:24:18 -0700 (Mon, 01 Aug 2005)
New Revision: 1842

Modified:
   trunk/examples/cmdline/search.cpp
   trunk/include/swmodule.h
Log:
fixed some docs


Modified: trunk/examples/cmdline/search.cpp
===================================================================
--- trunk/examples/cmdline/search.cpp	2005-07-05 12:13:34 UTC (rev 1841)
+++ trunk/examples/cmdline/search.cpp	2005-08-01 15:24:18 UTC (rev 1842)
@@ -61,7 +61,14 @@
 
 	std::cerr << "[0=================================50===============================100]\n ";
 	char lineLen = 70;
-	listkey = target->Search(argv[2], -4, /*SEARCHFLAG_MATCHWHOLEENTRY*/ REG_ICASE, 0, 0, &percentUpdate, &lineLen);
+  /*
+	 *			>=0 - regex
+	 *			-1  - phrase
+	 *			-2  - multiword
+	 *			-3  - entryAttrib (eg. Word//Strongs/G1234/)
+	 *			-4  - Lucene
+   */
+	listkey = target->Search(argv[2], -2, /*SEARCHFLAG_MATCHWHOLEENTRY*/ REG_ICASE, 0, 0, &percentUpdate, &lineLen);
 	std::cout << "\n";
 	while (!listkey.Error()) {
 		std::cout << (const char *)listkey << std::endl;

Modified: trunk/include/swmodule.h
===================================================================
--- trunk/include/swmodule.h	2005-07-05 12:13:34 UTC (rev 1841)
+++ trunk/include/swmodule.h	2005-08-01 15:24:18 UTC (rev 1842)
@@ -347,6 +347,7 @@
 	 *			-1  - phrase
 	 *			-2  - multiword
 	 *			-3  - entryAttrib (eg. Word//Strongs/G1234/)
+	 *			-4  - Lucene
 	 * @param flags options flags for search
 	 * @param scope Key containing the scope. VerseKey or ListKey are useful here.
 	 * @param justCheckIfSupported if set, don't search,



More information about the sword-cvs mailing list