I've setup Solr for autosuggestions. It needs to be able to suggest phrases and handle spelling errors. So far, I'm using a normally tokenized field for spelling suggestions (works fine) and a copy of the same field without tokenization to search on with wildcards for autosuggestion (e.g. \*searchterm\*). This also works ok, but due to wildcards, the scoring is always 1 for each document. In addition, normal scoring wouldn't actually make sense here. The natural way to score would be based on how many results would the suggested phrase generate if it were a search term itself. Something similar to what Solr's spellchecker is using. I don't think this is possible out of the box, but I have no real clue.
Any ideas on how to achieve this? Or at least improve it?
It's important that the suggestions remain full phrases.