[KinoSearch] Two things
Marvin Humphrey
marvin at rectangular.com
Wed May 6 17:17:30 PDT 2009
On Wed, May 06, 2009 at 04:32:15PM -0700, webmasters at ctosonline.org wrote:
> KinoSearch::Indexer’s man page says that ‘create’ is 0 by default. 303-
> highlighter.t does not specify this. Does this option apply only to
> actual files and not RAMFolders?
The way I think of it is, the RAMFolder already exists, so it's not necessary
to specify "create => 1" -- just as it's not necessary to specify
"create => 1" when the index directory already exists on the file system.
> I believe there is something wrong with the binding of
> Compiler_Highlight_Spans. In Perl it always returns an empty unblessed
> array ref.
A quick look didn't reveal anything obviously wrong with the binding code, and
that's the behavior we should expect if there's nothing to highlight.
Is it possible that the field was not marked as "highlightable"? Highlighting
is no longer enabled by default -- it has to be turned on for each field.
my $schema = KinoSearch::Schema->new;
my $type = KinoSearch::FieldType::FullTextType->new(
analyzer => $analyzer,
highlightable => 1,
);
$schema->spec_field( name => 'title', type => $type );
$schema->spec_field( name => 'content', type => $type );
If that's not it, what's the context?
Marvin Humphrey
More information about the kinosearch
mailing list