[sword-svn] r3270 - trunk/src/modules
scribe at crosswire.org
scribe at crosswire.org
Sat Oct 11 10:22:51 MST 2014
Author: scribe
Date: 2014-10-11 10:22:51 -0700 (Sat, 11 Oct 2014)
New Revision: 3270
Modified:
trunk/src/modules/swmodule.cpp
Log:
Changed default Xapian query operator to be OP_AND
Modified: trunk/src/modules/swmodule.cpp
===================================================================
--- trunk/src/modules/swmodule.cpp 2014-10-09 14:55:14 UTC (rev 3269)
+++ trunk/src/modules/swmodule.cpp 2014-10-11 17:22:51 UTC (rev 3270)
@@ -475,6 +475,7 @@
SWTRY {
Xapian::Database database(target.c_str());
Xapian::QueryParser queryParser;
+ queryParser.set_default_op(Xapian::Query::OP_AND);
queryParser.set_stemmer(Xapian::Stem("en"));
queryParser.set_stemming_strategy(queryParser.STEM_SOME);
queryParser.add_prefix("content", "C");
More information about the sword-cvs
mailing list