Hello, James said this in another thread:> If you're using the 1.1 development series, you can store an arbitrary numeric weight for each document, and use a > ValueWeightPostingSource to add this weight to the standard weight of the document. Using this technique, you can > specify exactly what weight bonus you want to be added to each document.My local dev machine now is running Xapian 1.1 with the PHP bindings, but where do I begin looking! I am quite happy looking through the api docs for this but as far as I can tell the api documents are 1.0 based. Any pointers would be handy. Regards John
On Tue, Sep 8, 2009 at 8:15 PM, John Wards<jwards at whiteoctober.co.uk> wrote:>I am quite happy looking through the api > docs for this but as far as I can tell the api documents are 1.0 > based.Okay, I have found the api docs on my local system for 1.1. However I can't figure out how to do what James has described? So I'm a bit stuck...
John Wards schrieb:> ... and use a ValueWeightPostingSource to add this weight to the > standard weight of the document...Hello, Document-weights would be great! Do I understand correctly, "ValueWeightPostingSource" is the only way to give weights to documents and this feature only works for "Query.OP_AND_MAYBE"? Thanks Marcus