Solr
  1. Solr
  2. SOLR-3050

highlighting not working with int and float data types

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: None
    • Component/s: highlighter

      Description

      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.

        Issue Links

          Activity

          Hide
          Koji Sekiguchi added a comment -

          Seems that you are hitting this:

          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
          
          Show
          Koji Sekiguchi added a comment - Seems that you are hitting this: 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

            People

            • Assignee:
              Unassigned
              Reporter:
              abhimanyu
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development