[Xapian-discuss] Search::Xapian::BM25Weight constructor problem

Markus Wörle mrks at mrks.de
Mon Oct 2 11:08:58 BST 2006


Hi!

I'm currently using the xapian perl-bindings from 
http://www.oligarchy.co.uk/xapian/trunk/Search-Xapian-0.9.6.0.tar.gz. 
When I'm trying to create a new instance of Search::Xapian::BM25Weight 
(I have to do this because I want to adjust some parameters),

	e.g. my $bm25 = new Search::Xapian::BM25Weight();

I get this error message:

	Usage: Search::Xapian::BM25Weight::new1(THIS) at 
/usr/local/lib/perl/5.8.7/Search/Xapian/BM25Weight.pm line 19.

Same problem when calling the new2 constructor implicit with new 
Search::Xapian::BM25Weight(k1, k2, k3, b, min_normlen);

Creating an instance of Search::Xapian::BoolWeight() works fine.

Calling the new1() or new2(k1, k2, k3, b, min_normlen) constructor 
directly leads to
'Search::Xapian::BM25Weight::new1() -- THIS is not a 
"Search::Xapian::Weight" object' and 
'Search::Xapian::BM25Weight::new2() -- THIS is not a 
"Search::Xapian::Weight" object' respectively.

Does anyone have a solution for me?

Thanks in advance,
mrks




More information about the Xapian-discuss mailing list