[sword-svn] r2046 - trunk/src/modules
chrislit at www.crosswire.org
chrislit at www.crosswire.org
Thu May 3 13:09:17 MST 2007
Author: chrislit
Date: 2007-05-03 13:09:16 -0700 (Thu, 03 May 2007)
New Revision: 2046
Modified:
trunk/src/modules/swmodule.cpp
Log:
change back to StandardAnalyzer
Modified: trunk/src/modules/swmodule.cpp
===================================================================
--- trunk/src/modules/swmodule.cpp 2007-05-03 10:41:07 UTC (rev 2045)
+++ trunk/src/modules/swmodule.cpp 2007-05-03 20:09:16 UTC (rev 2046)
@@ -515,7 +515,7 @@
is = new IndexSearcher(ir);
(*percent)(10, percentUserData);
- SimpleAnalyzer analyzer;
+ standard::StandardAnalyzer analyzer;
lucene_utf8towcs(wcharBuffer, istr, MAX_CONV_SIZE); //TODO Is istr always utf8?
q = QueryParser::parse(wcharBuffer, _T("content"), &analyzer);
(*percent)(20, percentUserData);
@@ -965,7 +965,7 @@
IndexWriter *fsWriter = NULL;
Directory *d = NULL;
- SimpleAnalyzer *an = new SimpleAnalyzer();
+ standard::StandardAnalyzer *an = new standard::StandardAnalyzer();
SWBuf target = getConfigEntry("AbsoluteDataPath");
bool includeKeyInSearch = getConfig().has("SearchOption", "IncludeKeyInSearch");
char ch = target.c_str()[strlen(target.c_str())-1];
More information about the sword-cvs
mailing list