Those are at least 3 different questions. Easiest first, sorting. add &sort=ad_post_date+desc (or asc) for sorting on date, descending or ascending
check out how http://www.supermind.org/blog/378/lucene-scoring-for-dummies Lucene scores by default. It might close to what you want. The only thing it isn't doing that you are looking for is the relative distance between keywords in a document. You can add a boost to the ad_title and ad_description fields to make them more important to your search. My guess is, although I haven't done this myself, the default Scoring algorithm can be augmented or replaced with your own. That may be a route to take if you are comfortable with java. -- View this message in context: http://lucene.472066.n3.nabble.com/Can-i-do-relavence-and-sorting-together-tp1516587p1516691.html Sent from the Solr - User mailing list archive at Nabble.com.