title: Solr: how to highlight the whole search phrase only?
body: <p><strong>A</strong>  I  need to perform a phrase search. On the search results Im getting the exact phrase matches but looking at the highlighted parts  I see that the phrase are tokenized  i.e This is what I get when I search for the prase "Day 1" : </p>
  
  <pre><code>&lt;arr name="post"&gt;
    &lt;str&gt;&lt;em&gt;Day&lt;/em&gt; &lt;em&gt;1&lt;/em&gt;   We have begun a new adventure! An early morning (4:30 a.m.) has found me meeting with&lt;/str&gt;
  &lt;/arr&gt;
  </code></pre>
  
  <p>This is what I want to receive as a result:</p>
  
  <pre><code>    &lt;arr name="post"&gt;
    &lt;str&gt;&lt;em&gt;Day 1&lt;/em&gt;   We have begun a new adventure! An early morning (4:30 a.m.) has found me meeting with&lt;/str&gt;
  &lt;/arr&gt;
  </code></pre>
  
  <p><strong>The query I m doing is this:</strong>
  Admin console:</p>
  
  <pre><code>q = day 1 
  fq = post:"day 1" OR title:"day 1"
  hl = true
  hl.fl =title,post
  </code></pre>
  
  <p>select?q=day+1&amp;fq=post%3A%22day+1%22+OR+title%3A%22day+1%22&amp;wt=xml&amp;indent=true&amp;hl=true&amp;hl.fl=title%2Cpost&amp;hl.simple.pre=%3Cem%3E&amp;hl.simple.post=%3C%2Fem%3E</p>
  
  <p>Theese are my fields:</p>
  
  <pre><code>     &lt;field name="post" type="text_general" indexed="true" stored="true" required="true" multiValued="false" /&gt;
        &lt;field name="post" type="text_general" indexed="true" stored="true" required="true" multiValued="false" /&gt;
  </code></pre>
  
  <p>This is the solr schema section for my fied type text_general:</p>
  
  <pre><code>    &lt;fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"&gt;
    &lt;analyzer type="index"&gt;
      &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
      &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /&gt;
  
      &lt;!-- in this example, we will only use synonyms at query time
      &lt;filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/&gt;
      --&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
    &lt;/analyzer&gt;
    &lt;analyzer type="query"&gt;
      &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
      &lt;filter class="solr.GreekStemFilterFactory"/&gt;
      &lt;filter class="solr.GreekLowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /&gt;
      &lt;filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
    &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  </code></pre>
  
  <p><strong>B)</strong> I can see in the highlight section more disturbing results i.e highlighting not the whole word as expected but single fragments: <code>.where you get to see all of Athens ...  &lt;em&gt;Day&lt;/em&gt; 2 -  Carmens</code>
  I dont want to see this result  in the highlighted section (Only need to see both words "Day 1"). Any ideas ?</p>
  
  <p>I m reading the Solr highlight section but .. really... there is not even 1 example!!!</p>