[bt-devel] clucene crash when searching

Martin Gruner mg.pub at gmx.net
Mon Nov 17 10:26:46 MST 2008


Eeli,

I think the error is because the search text really is empty if you only enter 
"and" or "or", because those two are syntax elements. If you enter "and" in 
quotes, it works.

So we probably only need to add a check if the string is different from "and" 
or "or". =) Does that make sense?

mg

On Saturday 15 November 2008 21:03:34 Eeli Kaikkonen wrote:
> On Sat, 15 Nov 2008, Martin Gruner wrote:
> > Hi Eeli,
> >
> > this should not happen. In CSwordModuleInfo, I use this code to turn off
> > the use of English stop words:
> >
> > 	// do not use any stop words
> > 	const TCHAR* stop_words[]  = { NULL };
> > 	lucene::analysis::standard::StandardAnalyzer an( stop_words );
> > 	QString index = getModuleStandardIndexLocation();
> >
> > This means that "and", "or" etc. should be indexed and also included in
> > the search.
>
> I'm not 100% sure how exactly Jit behaves but when I searched for
> example "and AND god" it found also verses where there was only "God"
> but not "and".
>
> BTW, I installed Kubuntu 8.10 to an i386 laptop (not mine though) and
> can soon test BT with it.
>
> --Eeli Kaikkonen
>
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel




More information about the bt-devel mailing list