[sword-cvs] sword/src/modules/texts/rawtext rawtext.cpp,1.66,1.67

sword@www.crosswire.org sword@www.crosswire.org
Sat, 30 Aug 2003 18:58:16 -0700


Update of /usr/local/cvsroot/sword/src/modules/texts/rawtext
In directory www:/tmp/cvs-serv24365/src/modules/texts/rawtext

Modified Files:
	rawtext.cpp 
Log Message:



Index: rawtext.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/texts/rawtext/rawtext.cpp,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- rawtext.cpp	29 Aug 2003 19:02:45 -0000	1.66
+++ rawtext.cpp	31 Aug 2003 01:58:14 -0000	1.67
@@ -395,7 +395,7 @@
 	if ((is) && (ir)) {
 
 		switch (searchType) {
-		case -3: {
+		case -2: {	// let lucene replace multiword for now
 
 
 			// test to see if our scope for this search is bounded by a
@@ -443,8 +443,12 @@
 					// check to see if it set ok and if so, add to our return list
 					if (*testKeyType == vk)
 						listkey << (const char *) vk;
+						listkey.GetElement()->userData = (void *)(int)(h.score(i)*100);
+				}
+				else {
+					listkey << (const char*) vk;
+					listkey.GetElement()->userData = (void *)(int)(h.score(i)*100);
 				}
-				else listkey << (const char*) vk;
 			}
 			(*percent)(98, percentUserData);
 
@@ -647,7 +651,7 @@
 
 #endif
 	// if we don't support this search, fall back to base class
-	return SWModule::Search(istr, searchType, flags, scope, justCheckIfSupported, percent, percentUserData);
+	return SWModule::search(istr, searchType, flags, scope, justCheckIfSupported, percent, percentUserData);
 }