: I have a problem with solr search. If I search after "vitamin" I receive : : 1 - arrca MULTIVITAMIN FRUCHTSAFTBÄRCHEN : 2 - VITAMIN E-KAPSELN NAT. 400
1) That first example will not match a query for "vitamin" using the analyzers you specified -- so if those are the results you are getting, you are not matching on the field you think you are. 2) As for your specific question about scoring based on the position of the word: the default scoring model doesn't do this, but there are things you can do to change that: a) index a positional marker at the start of the values (ie: "__START_OF_STRING__" or something like that) and change your queries for things like "vitamin" to be a sloppy phrase query including your positional marker (ie: "__START_OF_STRING__ vitamin"~100). phrase queries score shorter phrases higher then longer phrases. b) use SpanQueries ... Solr 3.3 doesn't support these using an query syntax, but you could write a custom QParser that uses a SpanFirstQuery, or look into the SurroundQParser which has been commited to the 4x branch (SOLR-2703) -Hoss