Tom Leitch
2009-Sep-09 14:45 UTC
[Xapian-discuss] InvalidArgumentError throw using Turkish stemmer and posting text "'leri"
Hi all, I've come across a very strange bug with Xapian 1.0.9.0 and the Turkish query parser when trying to index a string (as posting) that looks like this: "...bir araya getiren CD'leri son teknolojiyle piyasaya...". The actual offending bit of the string is: 'leri It throws the message I have shown below. The real annoyance is that I can't seem to catch it because it is thrown from the XS (is there any kind of signal trap that might catch this?) terminate called after throwing an instance of 'Xapian::InvalidArgumentError' Aborted tom
Olly Betts
2009-Sep-10 13:53 UTC
[Xapian-discuss] InvalidArgumentError throw using Turkish stemmer and posting text "'leri"
On Wed, Sep 09, 2009 at 03:45:58PM +0100, Tom Leitch wrote:> I've come across a very strange bug with Xapian 1.0.9.0 and the Turkish > query parser when trying to index a string (as posting) that looks like > this: "...bir araya getiren CD'leri son teknolojiyle piyasaya...". The > actual offending bit of the string is: 'leriI'm struggling to follow exactly what you're doing to cause this exception. I can successfully stem "'leri" with the Turkish stemmer. Can you post some actual code (ideally something self-contained)?> It throws the message I have shown below. The real annoyance is that I can't > seem to catch it because it is thrown from the XS (is there any kind of > signal trap that might catch this?)Upgrading would help if this is coming from Xapian::Document - 1.0.14.0 adds exception handling to methods of Xapian::Document. Cheers, Olly
Simon Roe
2009-Sep-11 10:31 UTC
[Xapian-discuss] InvalidArgumentError throw using Turkish stemmer and posting text "'leri"
On Wed, Sep 9, 2009 at 3:45 PM, Tom Leitch <tom.leitch at gmail.com> wrote:> Hi all, > I've come across a very strange bug with Xapian 1.0.9.0 and the Turkish > query parser when trying to index a string (as posting) that looks like > this: "...bir araya getiren CD'leri son teknolojiyle piyasaya...". The > actual offending bit of the string is: ?'leriThis looks like an escaping error to me, where "leri son teknolojiyle piyasaya..." is being parses as the 2nd argument to whatever function you're using. -- E: simon.roe at talusdesign.co.uk M: 07742079314