You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2015/04/29 19:06:08 UTC

[jira] [Commented] (SOLR-7488) suspicious FVH init code in DefaultSolrHighlighter even when FVH should not be used

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

Hoss Man commented on SOLR-7488:
--------------------------------

Details from initial user report...

{noformat}
After we upgraded Solr from 4.5.1 to 4.10.4, we started seeing the following UnsupportedOperationException logged
repeatedly.  We do not have highlighting configured to useFastVectorHighlighter.  The logged stack trace has given
me little to go on.  I was hoping this is a problem others have seen (but my searching has yielded nothing).

Thanks
Rich

null:java.lang.UnsupportedOperationException
        at org.apache.lucene.queryparser.surround.query.RewriteQuery.clone(RewriteQuery.java:80)
        at org.apache.lucene.queryparser.surround.query.RewriteQuery.clone(RewriteQuery.java:23)
        at org.apache.lucene.search.vectorhighlight.FieldQuery.applyParentBoost(FieldQuery.java:156)
        at org.apache.lucene.search.vectorhighlight.FieldQuery.flatten(FieldQuery.java:96)
        at org.apache.lucene.search.vectorhighlight.FieldQuery.flatten(FieldQuery.java:96)
        at org.apache.lucene.search.vectorhighlight.FieldQuery.<init>(FieldQuery.java:67)
        at org.apache.lucene.search.vectorhighlight.FastVectorHighlighter.getFieldQuery(FastVectorHighlighter.java:98)
        at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(DefaultSolrHighlighter.java:401)
        at org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:144)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)
{noformat}

> suspicious FVH init code in DefaultSolrHighlighter even when FVH should not be used
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-7488
>                 URL: https://issues.apache.org/jira/browse/SOLR-7488
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.10
>            Reporter: Hoss Man
>
> Rich Hume reported gettting errors from FastVectorHighlighter, evidently while using the the surround query parser, even though he was not trying to  "useFastVectorHighlighter"
> my naive reading of the code leads me to believe that DefaultSolrHighlighter is incorrectly attempting to initialize a FVH instance even when it shouldn't be -- which appears to cause failures in cases where the query in use is not something that can be handled by the FVH.
> Not sure how to reproduce at the moment -- but the code smells fishy.



--
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