search for: get_sumextra

Displaying 3 results from an estimated 3 matches for "get_sumextra".

2006 Jul 25
2
weight scheme with document values
...e to put my document in ascending order depending on the distance... My information to calcul distance is in values in the document. How I can access document values from Weight to be able to add some sum_extra weight ?? I just tried to create a function in Weight that look like: Xapian::weight get_sumextra(std::map<Xapian::valueno, std::string> values) const; to calculate an extra weight from my documents values... But now I going deeper and deeper in the code to make this functions working... Is it the good way to do this or there is an easier way ?? Thanks a lot Regards. Eric
2012 Jul 17
1
Can not use custom weight scheme with python binding
...de is like this. class TinkerWeight(xapian.Weight): def __init__(self): pass def name(self): return "Tinker" def serialize(self): return "" def get_sumpart(*args): return 1 def get_maxpart(*args): return 1 def get_sumextra(*args): return 0 def get_maxextra(*args): return 0 ... ... enquire.set_weighting_scheme(TinkerWeight()) But is throws this error: *in method 'Enquire_set_weighting_scheme', argument 2 of type 'Xapian::Weight const &'* Could anyone help me to solve this?...
2009 Jan 27
1
Segmentation fault in MSetIterator get_weight
Hi, I'm using xapian with c# and mono and i'm having a segfault in get_weight. When i print the index variable, the value is clearly too high. I think something write over it. Do you have any idea on how i could trace the beginning of the segmentation fault ? Thanks, -- Yann