title: Getting a word count frequency out of a page field
body: <p>SOLR reports the term occurrence for terms over all the documents. I am having trouble making a query that returns the term occurrence in a specific page field called, documentPageId.</p>
  
  <p>I don't know how to issue a proper SOLR query that returns a word count for a paragraph of text such as the term "amplifier" for a field. For some reason it only returns.</p>
  
  <p>The things I've tried only return a count for 1 occurrence of the term even though I see the term in the paragraph more than just once.</p>
  
  <p>I've tried faceting on the field, "contents"</p>
  
  <p><a href="http://localhost:8983/solr/select?indent=on&amp;q=" rel="nofollow">http://localhost:8983/solr/select?indent=on&amp;q=</a><em>:</em>&amp;wt=standard&amp;facet=on&amp;facet.field=documentPageId&amp;facet.query=amplifier&amp;facet.sort=lex&amp;facet.missing=on&amp;facet.method=count</p>
  
  <pre><code>&lt;lst name="facet_counts"&gt;
  &lt;lst name="facet_queries"&gt;
  &lt;int name="amplifier"&gt;21&lt;/int&gt;
  &lt;/lst&gt;
  &lt;lst name="facet_fields"&gt;
  &lt;lst name="documentPageId"&gt;
  &lt;int name="49667.1"&gt;1&lt;/int&gt;
  &lt;int name="49667.10"&gt;1&lt;/int&gt;
  &lt;int name="49667.11"&gt;1&lt;/int&gt;
  &lt;int name="49667.12"&gt;1&lt;/int&gt;
  &lt;int name="49667.13"&gt;1&lt;/int&gt;
  &lt;int name="49667.14"&gt;1&lt;/int&gt;
  &lt;int name="49667.15"&gt;1&lt;/int&gt;
  &lt;int&gt;0&lt;/int&gt;
  &lt;/lst&gt;
  &lt;/lst&gt;
  &lt;lst name="facet_dates"/&gt;
  &lt;lst name="facet_ranges"/&gt;
  &lt;/lst&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>In schema.xml:
   
   </p>
  
  <p>In solrconfig.xml:</p>
  
  <pre><code>   &lt;str name="facet.field"&gt;filewrapper&lt;/str&gt;
     &lt;str name="facet.field"&gt;caseNumber&lt;/str&gt;
     &lt;str name="facet.field"&gt;pageNumber&lt;/str&gt;
     &lt;str name="facet.field"&gt;documentId&lt;/str&gt;
     &lt;str name="facet.field"&gt;contents&lt;/str&gt;
     &lt;str name="facet.query"&gt;documentId&lt;/str&gt;
     &lt;str name="facet.query"&gt;caseNumber&lt;/str&gt;
     &lt;str name="facet.query"&gt;pageNumber&lt;/str&gt;
    &lt;str name="facet.field"&gt;documentPageId&lt;/str&gt;
     &lt;str name="facet.query"&gt;contents&lt;/str&gt;
  </code></pre>
  
  <p>Thanks in advance,</p>