Index all words, including "stop words". Patch by mwtalbert. Index: main/src/modules/swmodule.cpp =================================================================== --- main.orig/src/modules/swmodule.cpp 2009-08-30 18:52:26.000000000 -0700 +++ main/src/modules/swmodule.cpp 2009-08-30 18:58:17.000000000 -0700 @@ -509,9 +509,10 @@ is = new IndexSearcher(ir); (*percent)(10, percentUserData); - standard::StandardAnalyzer analyzer; - lucene_utf8towcs(wcharBuffer, istr, MAX_CONV_SIZE); //TODO Is istr always utf8? - q = QueryParser::parse(wcharBuffer, _T("content"), &analyzer); + const TCHAR* stop_words[] = { NULL }; + standard::StandardAnalyzer *analyzer = new standard::StandardAnalyzer( (const TCHAR**)stop_words ); + lucene_utf8towcs(wcharBuffer, istr, MAX_CONV_SIZE); //TODO Is istr always utf8? + q = QueryParser::parse(wcharBuffer, _T("content"), analyzer); (*percent)(20, percentUserData); h = is->search(q); (*percent)(80, percentUserData); @@ -1017,7 +1018,8 @@ IndexWriter *fsWriter = NULL; Directory *d = NULL; - standard::StandardAnalyzer *an = new standard::StandardAnalyzer(); + const TCHAR* stop_words[] = { NULL }; + standard::StandardAnalyzer *an = new standard::StandardAnalyzer( (const TCHAR**)stop_words ); SWBuf target = getConfigEntry("AbsoluteDataPath"); bool includeKeyInSearch = getConfig().has("SearchOption", "IncludeKeyInSearch"); char ch = target.c_str()[strlen(target.c_str())-1];