Re: [SolR 3.0] Boost score by string position in field

2014-01-14 Thread Ahmet Arslan
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

Re: [SolR 3.0] Boost score by string position in field

2014-01-14 Thread Erick Erickson
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