[KinoSearch] KinoSearch::Search::SortRule seems not to allow type parameter

Marvin Humphrey marvin at rectangular.com
Sat May 2 14:13:23 PDT 2009


On Sat, May 02, 2009 at 04:35:12PM -0400, Darian Anthony Patrick wrote:
> In trunk r4526 SortRule seems to not function according to the
> documentation.  KinoSearch::Search::SortRule->new( type => 'doc') or
> KinoSearch::Search::SortRule->new( type => 'score') throw the following
> error:
> 
> When sorting by field, param 'field' is required at
> ../core/KinoSearch/Search/SortRule.c:29 kino_SortRule_init

The API documentation got ahead of the implementation, because I've had more
difficulty switching over to the new sort cache format than anticipated.

I've fixed the SortRule constructor, but right this moment, it's only valid to
supply fields to sort by, and ties are hard-coded to be broken by score, then
doc num.

I'll post to the list when SortRule's 'doc' and 'score' types work properly.

Marvin Humphrey




More information about the kinosearch mailing list