title: solr : highlighting : hl.simple.pre/post doesn't appear sometime
body: <p>With solr, I try to highlighting some text using hl.formatter option with hl.simple.pre/post. </p>
  
  <p>My problem is that the hl.simple.pre/post code doesn't appear sometime in the highlighting results, I don't understand why.</p>
  
  <p>By example I call this URL : </p>
  
  <pre><code>http://localhost:8080/solr/Employees/select?q=lastName:anthan&amp;fl=lastName&amp;wt=json&amp;indent=true&amp;hl=true&amp;hl.fl=lastName&amp;hl.simple.pre=&lt;em&gt;&amp;hl.simple.post=&lt;/em&gt;
  </code></pre>
  
  <p>I get :</p>
  
  <pre><code> ..."highlighting": {
      "NB0094418": {
        "lastName": [
          "Yogan&lt;em&gt;anthan&lt;/em&gt;" =&gt; OK
        ]
      },
      "NB0104046": {
        "lastName": [
          "Vijayakanthan" =&gt; KO, I want Vijayak&lt;em&gt;anthan&lt;/em&gt;
        ]
      },
      "NB0144981": {
        "lastName": [
          "Parmananthan" =&gt; KO, I want Parman&lt;em&gt;anthan&lt;/em&gt;
        ]
      },...
  </code></pre>
  
  <p>Someone have an idea why I have this behavior ?</p>
  
  <p>My configuration :</p>
  
  <p>schema.xml</p>
  
  <pre><code>&lt;fieldType name="nameType" class="solr.TextField"&gt;
      &lt;analyzer type="index"&gt;
          &lt;tokenizer class="solr.NGramTokenizerFactory" minGramSize="2" maxGramSize="50" /&gt;
          &lt;filter class="solr.LowerCaseFilterFactory" /&gt;
          &lt;filter class="solr.ASCIIFoldingFilterFactory" /&gt;
          &lt;filter class="solr.TrimFilterFactory" /&gt;
          &lt;filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all" /&gt;
      &lt;/analyzer&gt;
  
      &lt;analyzer type="query"&gt;
          &lt;tokenizer class="solr.KeywordTokenizerFactory" /&gt;
          &lt;filter class="solr.LowerCaseFilterFactory" /&gt;
          &lt;filter class="solr.ASCIIFoldingFilterFactory" /&gt;
          &lt;filter class="solr.TrimFilterFactory" /&gt;
          &lt;filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all" /&gt;
      &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  
  ...
  &lt;fields&gt;
      &lt;field name="lastName" type="nameType" indexed="true" stored="true" required="true" /&gt;
  &lt;/fields&gt;
  </code></pre>
  
  <p>solrconfig.xml       </p>
  
  <pre><code>&lt;requestHandler name="standard" class="solr.SearchHandler" default="true"&gt;
      &lt;lst name="defaults"&gt;
          &lt;str name="echoParams"&gt;explicit&lt;/str&gt;
      &lt;/lst&gt;
  &lt;/requestHandler&gt;
  
  ...
  
  &lt;searchComponent class="solr.HighlightComponent" name="highlight"&gt;
      &lt;highlighting&gt;
          &lt;fragmenter name="gap" default="true" class="solr.highlight.GapFragmenter"&gt;
              &lt;lst name="defaults"&gt;
                  &lt;int name="hl.fragsize"&gt;100&lt;/int&gt;
              &lt;/lst&gt;
          &lt;/fragmenter&gt;
  
          &lt;fragmenter name="regex" class="solr.highlight.RegexFragmenter"&gt;
              &lt;lst name="defaults"&gt;
                  &lt;int name="hl.fragsize"&gt;70&lt;/int&gt;
                  &lt;float name="hl.regex.slop"&gt;0.5&lt;/float&gt;
                  &lt;str name="hl.regex.pattern"&gt;[-\w ,/\n\&amp;quot;&amp;apos;]{20,200}&lt;/str&gt;
              &lt;/lst&gt;
          &lt;/fragmenter&gt;
  
          &lt;formatter name="html" default="true" class="solr.highlight.HtmlFormatter"&gt;
              &lt;lst name="defaults"&gt;
                  &lt;str name="hl.simple.pre"&gt;&lt;![CDATA[&lt;em&gt;]]&gt;&lt;/str&gt;
                  &lt;str name="hl.simple.post"&gt;&lt;![CDATA[&lt;/em&gt;]]&gt;&lt;/str&gt;
              &lt;/lst&gt;
          &lt;/formatter&gt;
  
          &lt;encoder name="html" default="true" class="solr.highlight.HtmlEncoder" /&gt;
  
          &lt;fragListBuilder name="simple" default="true" class="solr.highlight.SimpleFragListBuilder" /&gt;
          &lt;fragListBuilder name="single" class="solr.highlight.SingleFragListBuilder" /&gt;
          &lt;fragmentsBuilder name="default" default="true" class="solr.highlight.ScoreOrderFragmentsBuilder"&gt;
          &lt;/fragmentsBuilder&gt;
  
          &lt;fragmentsBuilder name="colored" class="solr.highlight.ScoreOrderFragmentsBuilder"&gt;
              &lt;lst name="defaults"&gt;
                  &lt;str name="hl.tag.pre"&gt;&lt;![CDATA[
                  &lt;b style="background:yellow"&gt;,&lt;b style="background:lawgreen"&gt;,
                  &lt;b style="background:aquamarine"&gt;,&lt;b style="background:magenta"&gt;,
                  &lt;b style="background:palegreen"&gt;,&lt;b style="background:coral"&gt;,
                  &lt;b style="background:wheat"&gt;,&lt;b style="background:khaki"&gt;,
                  &lt;b style="background:lime"&gt;,&lt;b style="background:deepskyblue"&gt;]]&gt;&lt;/str&gt;
                  &lt;str name="hl.tag.post"&gt;&lt;![CDATA[&lt;/b&gt;]]&gt;&lt;/str&gt;
              &lt;/lst&gt;
          &lt;/fragmentsBuilder&gt;
      &lt;/highlighting&gt;
  &lt;/searchComponent&gt;
  </code></pre>