<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
stupid question, figured it out already, sorry.<br>
<br>
alec<br>
<br>
Alexander Lind wrote:
<blockquote cite="mid44C7C9F6.5060001@webstay.org" type="cite">
<pre wrap="">Hi Eric
Can you please post your MatchDecider function here, I'm trying to
implement one myself but am a little lost on how to get it working.
Thanks
Alec
Eric Langevin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi guys,
I resently used xapian to sort some documents by distance between 2
points.
I implemented a MatchDecider which work well.
I now tried to implement a Weight scheme 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
_______________________________________________
Xapian-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xapian-devel@lists.xapian.org">Xapian-devel@lists.xapian.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xapian.org/mailman/listinfo/xapian-devel">http://lists.xapian.org/mailman/listinfo/xapian-devel</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
Xapian-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xapian-devel@lists.xapian.org">Xapian-devel@lists.xapian.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xapian.org/mailman/listinfo/xapian-devel">http://lists.xapian.org/mailman/listinfo/xapian-devel</a>
</pre>
</blockquote>
</body>
</html>