You can do a lot with function queries. Only you know what the domain specific requirements are, so you should write application layer code to modify the Solr query based on the user profile to the one searching.
Example for the 1950 movie lover you could do: q=goo bar&defType=dismax&bf=map(movieyear,1950,1959,1,0)^1000.0 Or you could use a recip(abs(sub(movieyear,1955)),10,100,10)^10.0 to give more boost to the move the closer to 1955 it is. However, sometimes it is easier to pre-calculate some field values in the index and filter/boost on those. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 9. feb. 2011, at 20.44, cyang2010 wrote: > > Hi, > > I am asked that whether solr renders biased search result? For example, for > this search (query all movie title by this Comedy genre), for user who > indicates a preference to 1950's movies, solr renders the 1950's movies with > higher score (top in the list)? Or if user is a kid, then the result will > render G/PG rated movie top in the list, and render all the R rated movie > bottom in the list? > > I know that solr can boost score based on match on a particular field. But > it can't favor some value over other value in the same field. is that > right? > -- > View this message in context: > http://lucene.472066.n3.nabble.com/solr-render-biased-search-result-tp2461155p2461155.html > Sent from the Solr - User mailing list archive at Nabble.com.