lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MANISH KUMAR (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-5544) Log spamming by DefaultSolrHighlighter
Date Thu, 12 Dec 2013 09:14:09 GMT

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

MANISH KUMAR edited comment on SOLR-5544 at 12/12/13 9:12 AM:
--------------------------------------------------------------

[~markus17] There is a check on whether FVH has been enabled for the specific field or not
: 

   boolean useFvhParam = params.getFieldBool( fieldName, HighlightParams.USE_FVH, false );
    if( !useFvhParam ) return false;

Seems there is a bug which is causing  params.getFieldBool to return true when it should have
returned false as none of the fields in my schema explicitly mentions to use FVH.


was (Author: manish.online@gmail.com):
There is a check on whether FVH has been enabled for the specific field or not : 

   boolean useFvhParam = params.getFieldBool( fieldName, HighlightParams.USE_FVH, false );
    if( !useFvhParam ) return false;

Seems there is a bug which is causing  params.getFieldBool to return true when it should have
returned false as none of the fields in my schema explicitly mentions to use FVH.

> Log spamming by DefaultSolrHighlighter
> --------------------------------------
>
>                 Key: SOLR-5544
>                 URL: https://issues.apache.org/jira/browse/SOLR-5544
>             Project: Solr
>          Issue Type: Improvement
>          Components: highlighter
>    Affects Versions: 4.0
>            Reporter: MANISH KUMAR
>            Priority: Minor
>
> In DefaultSolrHighlighter.java
> The method useFastVectorHighlighter has
>  log.warn( "Solr will use Highlighter instead of FastVectorHighlighter because {} field
does not store TermPositions and TermOffsets.", fieldName );
> Above method gets called each field and there could be cases where TermPositions &
TermOffsets are not stored.
> The above line causes huge spamming of logs.
> It should be at max a DEBUG level log which will give flexibility of turning it off in
production environments.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

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


Mime
View raw message