Hi all, I did few steps forward but still struggling in how read the field
value inside my custom DoubleValuesSource
final CustomValuesSource valuesSource = new
CustomValuesSource(data, req.getSchema().getField(field));
return FunctionScoreQuery.boostByValue
I think what I'm looking for is to multiply the term frequency of each term
by the similarity score.
E.g for 'shoes', its an exact match, so tf * 1
For 'socks', similarity = 0.8, -> tf * 0.8
'Clothes', similarity = 0.65 -> tf * 0.65
Is there a way to achieve this w/ Lucene's API or do I need to e
Hellooo,
Suppose a user enters ‘box of shoes’ in my search box. I have two documents
titled ‘box of clothes’ and ‘box of socks’. I’ve figured out through a
separate algorithm that ‘socks’ is more similar to ‘shoes’ than clothes.
I even have a numeric score for the similarity: for socks it’s 0.8 a