On Jan 13, 2010, at 10:44 AM, Kevin Thorley wrote:

> I have tried several variations now, but have been unable to come up with a 
> way to boost fields in a localsolr query.  What I need to do is do a 
> localsolr search and sort the result set so that a specific value is at the 
> top.  My idea was to use a nested dismax query with a boost field like this 
> (with field names changed to protect the guilty):
> 
> qt=geo & lat=44.47 & long=-73.15 & radius=10 & _query_:"{!dismax qf=year 
> bf=author:kevin^2}2010" & sort=score desc

Sorry if this caused any confusion... the "bf" param above should have been "bq"

> In plain english, find all posts in the given radius from the year 2010 with 
> the posts by author 'kevin' appearing at the top of the result set.
> 
> This didn't work, as _query_ wasn't recognized by the localsolr handler.  I 
> then tried the opposite, putting the localsolr query in a nested query, but 
> the dismax handler didn't parse the nested query.
> 
> So, is there any way to accomplish what I am trying?  
> 
> Thanks,
> Kevin

Reply via email to