Hi Sebastien,
I think you want to boost product names that start with query term, right? Or
in other words, boost if query term occurs within the first N words of a
document.
SpanFirstQuery seems an elegant way to do it.
https://issues.apache.org/jira/browse/SOLR-3925
Alternatively one can ad
It's usually a mistake to try to tune at this level. The tf/idf
calculations _already_ take into account the field length (measured in
tokens) when scoring. Matches on shorter fields add more to the score
than matches on longer fields, which seems to be what you're looking
for.
That said, the leng