Closed conor-cafferkey-sociomantic closed 7 years ago
~Also the weight given to descriptionSplit
(the description
string broken into words) seems too high / inconsistent with the others:~
weights :
{
text : 30,
textStartsWith : 50,
textFlat : 10,
textSplit : 10,
value : 30,
valueStartsWith : 50,
valueFlat : 10,
valueSplit : 10,
description : 15,
descriptionSplit : 30
}
~Based on the other weights it seems like the “correct” value for descriptionSplit
would be 5
.~
Won’t change this.
Currently
Given a Flounder with:
A search value of
Knusper
returns no results (No matches found).(The value
Knusper Müsli
correctly displays the option.)~Problem~
~The search algorithm punishes non-matches of the
description
string. In the above case this leads to a score less than the minimum threshold (0
).~~Wanted~
~The search should not penalize non-matches of the
description
(orvalue
) string.~Turns out the solution is a lot simpler...
search.js
line 319:should be: