Re: Multiply instead of summing two scores

2014-04-12 Thread Rune Stilling
Hi list For the record I have found a way to implement my requirement. I have implemented my own CustomScoreQuery using that to check when there’s a match bewteen my query and the specific field (f3). When there’s a match I multiply with my boost score. The implementation looks like this: pub

Re: Multiply instead of summing two scores

2014-04-12 Thread Jose Carlos Canova
Hum, You don't have a document weight you have a Document Score in relation of other documents on the index during a search event. On practice the document weight will be the sum of the weight of the terms in relation with an Index. You might find this presentation useful. http://www.cs.cmu.edu/

Multiply instead of summing two scores

2014-04-11 Thread Rune Stilling
Hi list Normally when I search with multiple terms using a BooleanQuery the calculated weights of each term are added/summed together to give a document the final score. Lets say thats fine for most fields in my index. I’ll name these fields F1 and F2. So a weight is calculated likes this: doc