This is exactly what I need, really appreciate. 2010/1/7 Shalin Shekhar Mangar <shalinman...@gmail.com>
> 2010/1/7 Wangsheng Mei <hairr...@gmail.com> > > > Hi, guys, I am getting started with solr. > > > > when I search a collection of data, I care both the document > > score(relevance > > towards user query word) and document publishTime(which is another field > in > > each of the document). > > If I simply sort matching document set by publishTime field, then the > score > > is not considered in. > > How would I handle this? > > Maybe I should use publishTime field as another search field,and compute > a > > composite score together with relevence score? > > > > Any hints, thanks very much! > > > > > Perhaps this can help? > > > http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documents > > -- > Regards, > Shalin Shekhar Mangar. > -- 梅旺生