We are currently a Lucene shop, the way we do it (currently) is to have
these results come from a database table (where it is available in rank
order). We want to move to Solr, so what I plan on doing to replicate
this functionality is to write a custom request handler that will do the
database query and put the results on the top of the search results
before the SolrIndexSearcher is invoked.

-sujit

On Fri, 2011-02-11 at 16:31 -0500, Ryan McKinley wrote:
> I have an odd need, and want to make sure I am not reinventing a wheel...
> 
> Similar to the QueryElevationComponent, I need to be able to move
> documents to the top of a list that match a given query.
> 
> If there were no sort, then this could be implemented easily with
> BooleanQuery (i think) but with sort it gets more complicated.  Seems
> like I need:
> 
>   sortSpec.setSort( new Sort( new SortField[] {
>     new SortField( something that only sorts results in the boost query ),
>     new SortField( the regular sort )
>   }));
> 
> Is there an existing FieldComparator I should look at?  Any other
> pointers/ideas?
> 
> Thanks
> ryan

Reply via email to