Matthew Talbert wrote:
I may package 0.9.23 for Windows, but the linux
distros aren't going to move to 0.9.23 until it's regarded as stable.
Indeed. As confirmation: rmadison -s karmic libclucene-dev outputs
libclucene-dev | 0.9.20-3 | karmic | amd64, i386
So that is what will be going into Ubuntu Karmic, as well as what is
already in Debian Lenny. Relying on anything later does not do any good
at all for the Debian or Ubuntu packages at this point. Debian testing
(squeeze) has 0.9.21b-2+b1, as does Debian unstable (sid). That package
went into Debian testing just yesterday (!), so expecting anything
significantly newer than that in the Debian/Ubuntu world for quite a
while is probably unrealistic. The RPM world is in roughly the same
state, with Fedora 11 having 0.9.21-3.
So, IMO, we do need a fix in SWORD itself to avoid this issue.
Especially since the same fix also means that searches such as "God is"
will work a lot more the way users would expect than they do now.
If all this takes is a two line change, it is probably worth the effort.
Jonathan
=== modified file 'src/modules/swmodule.cpp'
--- src/modules/swmodule.cpp 2009-04-23 02:40:33 +0000
+++ src/modules/swmodule.cpp 2009-08-31 21:16:41 +0000
@@ -509,7 +509,7 @@
is = new IndexSearcher(ir);
(*percent)(10, percentUserData);
- standard::StandardAnalyzer analyzer;
+ SimpleAnalyzer analyzer;
lucene_utf8towcs(wcharBuffer, istr, MAX_CONV_SIZE);
//TODO Is istr always utf8?
q = QueryParser::parse(wcharBuffer, _T("content"),
&analyzer);
(*percent)(20, percentUserData);
@@ -1016,7 +1016,7 @@
IndexWriter *fsWriter = NULL;
Directory *d = NULL;
- standard::StandardAnalyzer *an = new standard::StandardAnalyzer();
+ SimpleAnalyzer *an = new SimpleAnalyzer();
SWBuf target = getConfigEntry("AbsoluteDataPath");
bool includeKeyInSearch = getConfig().has("SearchOption",
"IncludeKeyInSearch");
char ch = target.c_str()[strlen(target.c_str())-1];
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page