Ash Gupta
2011-Jun-21 20:05 UTC
[Xapian-discuss] Error after upgrading to latest xapian distro
I upgraded to latest xapian version and I have started getting xapian.InvalidArgumentError: Term too long (> 245): XTEXT... This issue was not there in 1.0.16 but it is in the latest version. Any solutions. thanks
Henry C.
2011-Jun-22 07:16 UTC
[Xapian-discuss] Error after upgrading to latest xapian distro
On Tue, June 21, 2011 22:05, Ash Gupta wrote:> I upgraded to latest xapian version and I have started getting > > xapian.InvalidArgumentError: Term too long (> 245): XTEXT... > > This issue was not there in 1.0.16 but it is in the latest version.I occasionally encounter this issue in the wild as well - you need to check that individual terms in your data don't exceed 245 chars. Realistically, what word (in any language) exceeds this length anyway? Regards Henry
Olly Betts
2011-Jun-22 08:30 UTC
[Xapian-discuss] Error after upgrading to latest xapian distro
On Tue, Jun 21, 2011 at 01:05:39PM -0700, Ash Gupta wrote:> I upgraded to latest xapian version and I have started getting > > xapian.InvalidArgumentError: Term too long (> 245): XTEXT... > > This issue was not there in 1.0.16 but it is in the latest version.This check was adding in 1.0.3, so I think it's merely coincidental that you didn't see it with 1.0.16 - if you indexed the same data with 1.0.16, you'd get the same error. And the limit was there prior to 1.0.3, it's just that you would get the error at some later point - see http://trac.xapian.org/ticket/44 for more information. Cheers, Olly