[sword-cvs] sword/include rawtext.h,1.28,1.29
sword@www.crosswire.org
sword@www.crosswire.org
Fri, 29 Aug 2003 12:02:47 -0700
Update of /usr/local/cvsroot/sword/include
In directory www:/tmp/cvs-serv3169/include
Modified Files:
rawtext.h
Log Message:
Added lucene to rawtext driver so all Bibles can use lucene search.
Looking forward to having a better search PLUGIN mechanism soon.
Index: rawtext.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/rawtext.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- rawtext.h 29 Aug 2003 06:00:16 -0000 1.28
+++ rawtext.h 29 Aug 2003 19:02:44 -0000 1.29
@@ -29,12 +29,27 @@
#include <defs.h>
+#ifdef USELUCENE
+namespace lucene { namespace index {
+class IndexReader;
+}}
+
+namespace lucene { namespace search {
+class IndexSearcher;
+}}
+#endif
+
SWORD_NAMESPACE_START
class SWDLLEXPORT RawText : public SWText, public RawVerse {
- RawStr *fastSearch[2];
VerseKey &getVerseKey();
+#ifdef USELUCENE
+ lucene::index::IndexReader *ir;
+ lucene::search::IndexSearcher *is;
+#else
+ RawStr *fastSearch[2];
+#endif
public: