Kevin Duraj
2007-May-04 21:41 UTC
[Xapian-discuss] set_cutoff <percent_cutoff> [<weight_cutoff>]
set_cutoff works fine for sort by relevance and value ... - set_sort_by_relevance_then_value set_cutoff does not seems to do anything for sort by value and relevance ... - set_sort_by_value_then_relevance It that correct? -- Kevin Duraj http://myhealthcare.com
Olly Betts
2007-May-04 23:16 UTC
[Xapian-discuss] set_cutoff <percent_cutoff> [<weight_cutoff>]
On Fri, May 04, 2007 at 01:41:17PM -0700, Kevin Duraj wrote:> set_cutoff works fine for sort by relevance and value ... > - set_sort_by_relevance_then_value > > set_cutoff does not seems to do anything for sort by value and relevance > ... > - set_sort_by_value_then_relevance > > It that correct?set_cutoff should work for any search. Can you try this against SVN HEAD (or a recent snapshot)? There have been some changes in this area since the last release. If it still fails, a fairly small example would be useful. Cheers, Olly
Kevin Duraj
2007-May-05 00:29 UTC
[Xapian-discuss] set_cutoff <percent_cutoff> [<weight_cutoff>]
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 ... Thanks -Kevin On 5/4/07, Olly Betts <olly@survex.com> wrote:> > On Fri, May 04, 2007 at 01:41:17PM -0700, Kevin Duraj wrote: > > set_cutoff works fine for sort by relevance and value ... > > - set_sort_by_relevance_then_value > > > > set_cutoff does not seems to do anything for sort by value and > relevance > > ... > > - set_sort_by_value_then_relevance > > > > It that correct? > > set_cutoff should work for any search. > > Can you try this against SVN HEAD (or a recent snapshot)? There have > been some changes in this area since the last release. > > If it still fails, a fairly small example would be useful. > > Cheers, > Olly >-- Kevin Duraj http://myhealthcare.com
Olly Betts
2007-May-05 00:32 UTC
[Xapian-discuss] set_cutoff <percent_cutoff> [<weight_cutoff>]
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
2007-May-05 02:43 UTC
[Xapian-discuss] set_cutoff <percent_cutoff> [<weight_cutoff>]
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@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