You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan Josal (JIRA)" <ji...@apache.org> on 2015/08/21 01:05:45 UTC

[jira] [Created] (SOLR-7953) BaseEditorialTransformer (elevated) doesn't work with LazyField

Ryan Josal created SOLR-7953:
--------------------------------

             Summary: BaseEditorialTransformer (elevated) doesn't work with LazyField
                 Key: SOLR-7953
                 URL: https://issues.apache.org/jira/browse/SOLR-7953
             Project: Solr
          Issue Type: Bug
    Affects Versions: 5.2, 4.10.2
            Reporter: Ryan Josal


When using the QueryElevationComponent, using the [elevated] docTransformer doesn't always work.  In the case the document is a LazyDocument, BaseEditorialTransformer#getKey will return the LazyField.toString() which is Object#toString() which of course isn't going to match any of the uniqueKeys.  The fix is to change getKey to check instanceof IndexableField instead of just Field.  I'm not sure the impact of this bug because I don't know how often LazyDocuments get used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org