[KinoSearch] How to easily disable SimpleHTMLEncoder in Highlighter & How to boost field

Vladimir Vlach vladaman at gmail.com
Thu Apr 10 23:19:36 PDT 2008



Hello guys,

1) can you help me how to disable SimpleHTMLEncoder? I have issues
with UTF-8 Characters encoded into html entities and I don't want
that. Is there any quick and dirty trick?

2) I also have a question, how to boost some fields in the search
results. For example Title. I know this was discussed before but it's
related to older version. Do I have to alter Schema or can I boost it
with Searcher?

I created Schema/Category.pm but I am not sure if this works. Score is
still the same.

package Schema::Category;
use base qw( KinoSearch::FieldSpec );

    sub analyzed     { 0 }
    sub indexed      { 1 }
    sub stored       { 1 }
    sub vectorized   { 1 }
    sub binary       { 0 }
    sub compressed   { 0 }

sub boost { 2 }

1;


I am using version 0.20_051

-- 
Vladimir Vlach
http://www.linkedin.com/in/vladaman

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




More information about the kinosearch mailing list