[bt-devel] clucene crash when searching

Eeli Kaikkonen eekaikko at mail.student.oulu.fi
Mon Nov 17 10:53:26 MST 2008


Martin Gruner wrote:
> 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?
>   

It makes sense. I still consider it to be a serious clucene bug (not 
ours! clucene should not crash) but we can probably find a nice way to 
prevent those. Is there a regexp "including something else than just and 
and/or or"? Or can the search string be checked with clucene somehow?

This has to be reflected in documentation. Also I have to change the 
existing AND/OR check: I have to find a way to leave the words inside 
quotes intact.


BTW, speaking of the search capability: I still think we should support 
the default Sword search engines (though not the clucene one). One 
reason is that the clucene search is unreliable - it's only as reliable 
as the indexing and syntax engines are, and we have seen that they are 
not perfect. Bible is different from other texts, as I said earlier, 
because it may be necessary to find words and sentences as they are 
literally. Clucene doesn't allow that, at least not without extra 
customizing. The second reason is that clucene doesn't support other 
languages. We saw that with the request for French support. The third 
one is that people working with Bible may need as reliable results as 
possible and no one search engine is perfect. Several engines would give 
extra reliability for those who want to double check.

Therefore I would like to hear why you consider supporting the other 
engines a bad thing. What exactly are the problems? I might come up with 
solutions, as you probably have seen with some other features :)


--Eeli Kaikkonen



More information about the bt-devel mailing list