You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Upayavira <uv...@odoko.co.uk> on 2015/09/01 09:09:57 UTC

Re: Custom merge logic in SolrCloud.

Take a step back. *why* do you need a blend? Can you adjust the scores
on your shards to make the normal algorithm work better for you?

Upayavira 

On Mon, Aug 31, 2015, at 08:47 PM, Mohan gupta wrote:
> Hi Folks,
> 
> I need to merge docs received from multiple shards via a custom logic, a
> straightforward score based priority queue doesn't work for my scenario
> (I
> need to maintain a blend/distribution of docs).
> 
> How can I plugin my custom merge logic? One way might be to fully
> implement
> the QueryComponent but that seems like a lot of work, is there a simpler
> way?
> 
> I need my custom logic to kick-in in very specific cases and most of the
> cases can still use default QueryComponent, was there a reason to make
> merge functionality private (non-overridable) in the  QueryComponent
> class?
> 
> -- 
> Regards ,
> Mohan Gupta