title: Sitecore 8.1: Custom Search Index not searching through PDF
body: <p>I have a custom search index that I want to index pdf file content. The master index seems to be indexing pdf files fine and sitecore's built in search functionality searches through the pdf files perfectly fine. I seem to be having an issue on trying to index the PDF field and then search the contents of it.</p>
  
  <p>In my indexConfiguration i add the filed by name</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;fieldNames hint="raw:AddFieldByFieldName"&gt;
    &lt;field fieldName="publication pdf" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" type="System.String" settingType="Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider" /&gt;
      ...
  &lt;/fieldNames&gt;
  </code></pre>
  
  <p>My results Item contains index field definition</p>
  
  <pre class="lang-cs prettyprint-override"><code>[IndexField("publication pdf")]
  public virtual string PDF { get; set; }
  </code></pre>
  
  <p>However when I create search context and try to find something inside the PDF, i get 0 results.</p>
  
  <pre class="lang-cs prettyprint-override"><code>var query = context.GetQueryable&lt;ResultItem&gt;();
  query = query.Where(p =&gt; p.PDF.Equals(SearchString));
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>