Ranking and name lookup added in full-text + various fixes including license

Hi Wim,

Some fixes regarding the ranking and name lookup, it's now available for the full_text search too. I also updated the license for search.py to have a compatible free software license, I hope this is fine for you.

Cheers.