You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Koji Sekiguchi (Commented) (JIRA)" <ji...@apache.org> on 2012/03/05 08:10:57 UTC

[jira] [Commented] (SOLR-3050) highlighting not working with int and float data types

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

Koji Sekiguchi commented on SOLR-3050:
--------------------------------------

Seems that you are hitting this:

{code:title=DefaultSolrHighlighter.java}
// TODO: Currently in trunk highlighting numeric fields is broken (Lucene) -
// so we disable them until fixed (see LUCENE-3080)!
// BEGIN: Hack
final SchemaField schemaField = schema.getFieldOrNull(fieldName);
if (schemaField != null && (
  (schemaField.getType() instanceof org.apache.solr.schema.TrieField) ||
  (schemaField.getType() instanceof org.apache.solr.schema.TrieDateField)
)) return;
// END: Hack
{code}

                
> highlighting not working with int and float data types
> ------------------------------------------------------
>
>                 Key: SOLR-3050
>                 URL: https://issues.apache.org/jira/browse/SOLR-3050
>             Project: Solr
>          Issue Type: Bug
>          Components: highlighter
>    Affects Versions: 4.0
>            Reporter: abhimanyu
>              Labels: highlighting, numeric, solr
>
> while using solr4.0 , the highlighter component does not highlight results under int or float field data types.
> however, it was highlighting the results using a released version 3.5.

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org