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

Darian Anthony Patrick darian at criticode.com
Sat May 2 15:18:21 PDT 2009


Okay, cool.  Thanks a lot Marvin.  In general do you want to hear about
issues with trunk, or would you rather that we just hold off until a dev
release is made?  I know some projects are annoyed with reports of
problems with trunk.

Best,

Darian

Marvin Humphrey wrote:
> 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
> 
> 
> _______________________________________________
> kinosearch mailing list
> kinosearch at rectangular.com
> http://rectangular.com/cgi-bin/mailman/listinfo/kinosearch
> 

-- 
Darian Anthony Patrick, Criticode LLC
Office:     (215) 789-9956
Facsimile:  (866) 789-2992
Email/XMPP: darian at criticode.com
Web:        http://criticode.com
=================================================
BCF1 E7AD 15AD 8A99 F613 AF5F 2A9C C45C F580 E087
=================================================
* Signed and encrypted communications preferred.



More information about the kinosearch mailing list