所以我已经实现并成功使用了Solr 4.我必须说Solr 4真棒!无论如何,我成功地按距离排序并使用地质过滤器将结果限制在某个区域.我现在想做的是通过距离的倒数提高相关性得分.这个页面讨论它但没有说明如何做(http://wiki.apache.org/solr/SpatialSearch)
我试过以下但它给了我一个错误:
http://localhost:8983/solr/select/?q={!boost b=recip(geodist(), 1, 1000, 1000)}...
我得到的错误是:
org.apache.lucene.queryParser.ParseException: Expected identifier at pos 27 str='{!boost b=recip(geodist(), 1, 10 in ...
任何帮助,将不胜感激.谢谢!