Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: kinosearch: discuss
KSx::Search::LongFieldSim in revision 3811
 

Index | Next | Previous | View Flat


henka at cityweb

Sep 5, 2008, 4:11 AM


Views: 6010
Permalink
KSx::Search::LongFieldSim in revision 3811

Greetings,

Testing KSx::Search::LongFieldSim in revision 3811 using the sample/
code, I've encountered the following error when creating an index:

Abstract method 'analyzer' not defined by USConSchema at
KinoSearch.xs:16574 XS_KinoSearch__Schema__analyzer
at
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/KinoSearch.pm
line 307
KinoSearch::Schema::clobber('USConSchema', 'uscon_invindex')
called at ./invindexer.pl line 16

My changes were as follows:

USConSchema.pm:
---------------
package USConSchema::testfield;
use base 'KinoSearch::FieldSpec::text';
use KSx::Search::LongFieldSim;
sub similarity { KSx::Search::LongFieldSim->new }

...

our %fields = (
title => 'text',
content => 'text',
url => 'USConSchema::NotIndexed',
category => 'USConSchema::NotAnalyzed',
testfield => 'USConSchema::testfield',
);

invindexer.pl:
--------------
return {
title => $title_node->as_trimmed_text,
content => $bodytext_node->as_trimmed_text,
testfield => $bodytext_node->as_trimmed_text,
url => "/us_constitution/$filename",
category => $category,
};

Any comments on what I'm doing wrong are appreciated.

Cheers
henry

_______________________________________________
KinoSearch mailing list
KinoSearch [at] rectangular
http://www.rectangular.com/mailman/listinfo/kinosearch

Subject User Time
KSx::Search::LongFieldSim in revision 3811 henka at cityweb Sep 5, 2008, 4:11 AM
    Re: KSx::Search::LongFieldSim in revision 3811 marvin at rectangular Sep 5, 2008, 6:54 AM
    Re: KSx::Search::LongFieldSim in revision 3811 henka at cityweb Sep 5, 2008, 7:10 AM
    Re: KSx::Search::LongFieldSim in revision 3811 henka at cityweb Sep 5, 2008, 7:16 AM
        Re: KSx::Search::LongFieldSim in revision 3811 marvin at rectangular Sep 5, 2008, 9:08 AM
    Re: KSx::Search::LongFieldSim in revision 3811 henka at cityweb Sep 5, 2008, 12:08 PM
        Re: KSx::Search::LongFieldSim in revision 3811 marvin at rectangular Sep 8, 2008, 5:25 AM
    Re: KSx::Search::LongFieldSim in revision 3811 henka at cityweb Sep 9, 2008, 6:43 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.