What is the relative range of weights when ranking results?

Hemang Patel's Avatar

Hemang Patel

30 Jun, 2012 12:45 AM

I am trying to add weights to a few models to give preference to some over other when performing an application wide search. As far as I understand, the default weight is 1.

Are the mean, median, max values known for result weights? It would help to know a range within which I should be trying to optimize the weighting.. <5, <100, <1000 etc?

  1. 1 Posted by Hemang Patel on 01 Jul, 2012 02:32 AM

    Hemang Patel's Avatar

    Most discussions seem to indicate a trial and error approach. I am wondering if anyone has consistently used a particular approach.

  2. Support Staff 2 Posted by Pat Allan on 01 Jul, 2012 06:16 PM

    Pat Allan's Avatar

    Hi Hemang

    You're correct with the default weight being 1. I don't think Sphinx provides any information with what the mean/median/max values for weights are - I generally take a trial and error approach, especially with a set of test data.

    It may be worth asking whether there's better approaches on the Sphinx forum.



  3. Hemang Patel closed this discussion on 23 Oct, 2012 10:53 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac