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: [email protected]
For additional commands, e-mail: [email protected]