title: Solr: match results with and without whitespaces
body: <p>The data in our solr field looks like this:</p>
  
  <pre><code>&lt;str name="property_Info_Hd"&gt;320 GB SATA 7200RPM&lt;/str&gt;
  &lt;str name="property_Info_Hd"&gt;320GB SATA&lt;/str&gt;
  
  &lt;str name="property_Info_Memory"&gt;4 GB of DDR2&lt;/str&gt;
  &lt;str name="property_Info_Memory"&gt;2GB of DDR3&lt;/str&gt;
  </code></pre>
  
  <p>The field is dynamic ("property_*"), so both cases use the same analyzer.</p>
  
  <p>Currently, when searching for "2gb", it returns documents with "2GB" but misses "2 GB" (whitespace).</p>
  
  <p>Question is: how could I set this field type in schema so it <strong>matches results with and without whitespaces</strong>?</p>
  
  <p>For example:</p>
  
  <p>Searching for +(property_Info_Memory:("320gb")) should return both the first lines above, matching "320GB" <strong>AND</strong> "320 GB".</p>
  
  <p>This is how the field type is set:</p>
  
  <pre><code>&lt;fieldType name="textFilter" class="solr.TextField" 
          positionIncrementGap="100"&gt;
         &lt;analyzer&gt;
          &lt;tokenizer class="solr.KeywordTokenizerFactory" /&gt;
          &lt;filter class="solr.WordDelimiterFilterFactory" 
                  splitOnCaseChange="0" 
                  splitOnNumerics="0" 
                  stemEnglishPossessive="0" 
                  catenateWords="1" 
                  catenateNumbers="1" 
                  catenateAll="1" 
                  preserveOriginal="1" 
                  generateWordParts="1" 
                  generateNumberParts="1"/&gt;
          &lt;filter class="solr.TrimFilterFactory" /&gt;
          &lt;filter class="solr.LowerCaseFilterFactory" /&gt;
          &lt;filter class="solr.ISOLatin1AccentFilterFactory" /&gt;
         &lt;/analyzer&gt;
      &lt;/fieldType&gt;
  </code></pre>
  
  <p>I've tried using splitOnCase and splitOnNumerics variations, none succeeded. Results then would match the ones with whitespaces (320 GB) and miss the non-whitespaced ones (320GB). </p>
  
  <p>Most documents have it's data without whitespaces, thats why the current setup.</p>
  
  <p>Thanks in advance for your help.</p>