title: Solr Highlighting with hl.q
body: <p>Currently we use solr 3.4 dismax queries throughout the site in order to take fully advantage of it faceting features. </p>
  
  <p>I have now been asked to highlight certain word(s) from the results of the queries.</p>
  
  <p>For example I have the following query which finds 110 documents which is correct:</p>
  
  <p><a href="http://localhost:8080/apache-solr-3.4./select/?qt=dismax&amp;mm=100%25&amp;rows=10&amp;start=0&amp;fq=productType%3Abooks" rel="nofollow">http://localhost:8080/apache-solr-3.4./select/?qt=dismax&amp;mm=100%25&amp;rows=10&amp;start=0&amp;fq=productType%3Abooks</a></p>
  
  <p>And if I use the following I get the same number of documents found but there are no highlighted sections:</p>
  
  <p><a href="http://localhost:8080/apache-solr-3.4./select/?qt=dismax&amp;mm=100%25&amp;rows=10&amp;start=0&amp;fq=productType%3Abooks&amp;hl=true&amp;hl.q=java&amp;hl.fl=descriptions&amp;hl.snippets=1000&amp;hl.simple.pre=%3Cb%3E&amp;hl.simple.post=%3C%2Fb%3E&amp;hl.fragsize=120" rel="nofollow">http://localhost:8080/apache-solr-3.4./select/?qt=dismax&amp;mm=100%25&amp;rows=10&amp;start=0&amp;fq=productType%3Abooks&amp;hl=true&amp;hl.q=java&amp;hl.fl=descriptions&amp;hl.snippets=1000&amp;hl.simple.pre=%3Cb%3E&amp;hl.simple.post=%3C%2Fb%3E&amp;hl.fragsize=120</a></p>
  
  <p>In the above query I added the highlighting parameters and I used the <a href="http://wiki.apache.org/solr/HighlightingParameters#hl.q" rel="nofollow">hl.q</a> which I thought could be used to pass the word(s) i want highlight in my documents without affecting the numFound (110). However this does not seem to be the case, but when I add the q=java the query will return the field with highlighted text but the numFound is affected.</p>
  
  <p>Can anyone see where I am going wrong? Can Solr achieve this task or is this something I will need to do with the results later?</p>