when you say : "However, for the phonetic matches, there are some matches
closer to the query text than others. How can we boost these results ? "
Do you mean closer in String edit distance ?
If that is the case you could use the String distance metric implemented in
Solr with a function query :
Hello.
We work on a search application whose main goal is to find persons by name
(surname and lastname).
Query text comes from a user-entered text field. Ordering of the text is not
defined (lastname-surname, surname-lastname), but
some orderings are most important than others. The ranking is