[sword-svn] r3269 - trunk/examples/cmdline
scribe at crosswire.org
scribe at crosswire.org
Thu Oct 9 07:55:15 MST 2014
Author: scribe
Date: 2014-10-09 07:55:14 -0700 (Thu, 09 Oct 2014)
New Revision: 3269
Modified:
trunk/examples/cmdline/search.cpp
Log:
removed sorting in example search
Modified: trunk/examples/cmdline/search.cpp
===================================================================
--- trunk/examples/cmdline/search.cpp 2014-10-09 09:23:05 UTC (rev 3268)
+++ trunk/examples/cmdline/search.cpp 2014-10-09 14:55:14 UTC (rev 3269)
@@ -119,9 +119,12 @@
listkey = target->search(argv[4], SEARCH_TYPE, /*SEARCHFLAG_MATCHWHOLEENTRY*/ REG_ICASE, 0, 0, &percentUpdate, &lineLen);
std::cerr << std::endl;
}
- listkey.sort();
+// we don't want to sort by verse if we've been given scores
+// listkey.sort();
while (!listkey.popError()) {
- std::cout << (const char *)listkey << std::endl;
+ std::cout << (const char *)listkey;
+ if (listkey.getElement()->userData) std::cout << " : " << (__u64)listkey.getElement()->userData << "%";
+ std::cout << std::endl;
listkey++;
}
More information about the sword-cvs
mailing list