[Xapian-discuss] set_cutoff <percent_cutoff> [<weight_cutoff>]

Kevin Duraj kevin.softdev at gmail.com
Sat May 5 02:43:52 BST 2007


Summary,

I tested xapian-core 0.9.9 and xapian-core 0.9.10 they both ignore
set_cutoff method for the following scenarios ...
Only once scenario work correctly, sort by relevance then value with term
frequency.

----------------------------------------------------------------------------------------
Scenario 1.) NOT WORKING (set_cutoff method)
set_cutoff(95, 0)
set_weighting_scheme(Search::Xapian::BM25Weight->new(0,0,0,0,0));
enq->set_sort_by_relevance_then_value(1,1)
----------------------------------------------------------------------------------------
Scenario 2.) YES WORKING (set_cutoff method)
set_cutoff(95, 0)
set_weighting_scheme(Search::Xapian::BM25Weight->new(1,0,0,0,0));
enq->set_sort_by_relevance_then_value(1,1)
----------------------------------------------------------------------------------------
Scenario 3.) NOT WORKING (set_cutoff method)
set_cutoff(95, 0)
set_weighting_scheme(Search::Xapian::BM25Weight->new(0,0,0,0,0));
enq->set_sort_by_value_then_relevance(1,1)
----------------------------------------------------------------------------------------
Scenario 4.) NOT WORKING (set_cutoff method)
set_cutoff(95, 0)
set_weighting_scheme(Search::Xapian::BM25Weight->new(0,0,0,0,0));
enq->set_sort_by_relevance_then_value(1,1)
----------------------------------------------------------------------------------------

I am mostly interested in scenario 3 ... sort by value and then relevance
while ignoring term frequency weighting scheme and that scenario is not
working for set_cutoff method ...

Thanks for your help,

-Kevin Duraj
http://myhealthcare.com/

On 5/4/07, Olly Betts <olly at survex.com> wrote:
>
> On Fri, May 04, 2007 at 04:29:43PM -0700, Kevin Duraj wrote:
> > I am rolling back to previous version of Xapian to see if in fact if
> > the new version has bug in around cutoff methods
> > set_sort_by_value_then_relevance,
> > then will post my findings ...
>
> Rolling back?  Was the bug observed in SVN HEAD then?
>
> Cheers,
>     Olly
>



-- 
Kevin Duraj
http://myhealthcare.com


More information about the Xapian-discuss mailing list