[ 
https://issues.apache.org/jira/browse/SOLR-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13150218#comment-13150218
 ] 

Grant Ingersoll commented on SOLR-2037:
---------------------------------------

Now that SOLR-1566 is fixed, we should be able to do this.  The main issue is 
this gets hooked into sorting, so we don't really have access to the documents 
to mark them.  Now, I could still hook it into the response writer as a 
transformer that uses the elevation info, but that isn't surefire either since 
we wouldn't truly know if it was elevated or not.  The other option, perhaps is 
that the FieldcomparatorSource used would need to put something into a data 
structure in the request that can then be consumed by a Transformer later.  Not 
sure this will work w/ the current setup, as it caches the comparator.  To deal 
with that, might need to separate that part out a little bit so as to be able 
to construct a really lightweight comparator that is constructed each time, but 
wraps an object that has the main sorting configuration done only when needed 
per the current approach.
                
> Distinguish Editorial Results from "normal" results in the 
> QueryElevationComponent
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-2037
>                 URL: https://issues.apache.org/jira/browse/SOLR-2037
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>
> In many cases, it would be nice if the results that are provided by the 
> QueryElevationComponent were identified as such so that one could make a 
> decision at rendering time whether to treat them differently or not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to