title: Retrieving extracted text with Apache Solr
body: <p>I'm new to Apache Solr, and I want to use it for indexing pdf files. I managed to get it up and running so far and I can now search for added pdf files.</p>
  
  <p>However, I need to be able to retrieve the searched text from the results.</p>
  
  <p>I found an xml snippet in the default solrconfig.xml concerning exactly that:</p>
  
  <pre><code>&lt;requestHandler name="/update/extract" class="org.apache.solr.handler.extraction.ExtractingRequestHandler" startup="lazy"&gt;
  &lt;lst name="defaults"&gt;
    &lt;!-- All the main content goes into "text"... if you need to return
         the extracted text or do highlighting, use a stored field. --&gt;
    &lt;str name="fmap.content"&gt;text&lt;/str&gt;
    &lt;str name="lowernames"&gt;true&lt;/str&gt;
    &lt;str name="uprefix"&gt;ignored_&lt;/str&gt;
  
    &lt;!-- capture link hrefs but ignore div attributes --&gt;
    &lt;str name="captureAttr"&gt;true&lt;/str&gt;
    &lt;str name="fmap.a"&gt;links&lt;/str&gt;
    &lt;str name="fmap.div"&gt;ignored_&lt;/str&gt;
  &lt;/lst&gt;
  </code></pre>
  
  <p></p>
  
  <p>From what I get from here (http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Content-Extraction-Tika), I think I have to add a new field to schema.xml (e.g. "content") that has stored="true" and indexed="true". However, I'm not really sure how to accomplish this exactly?</p>
  
  <p>any help appreciated, thx</p>