title: Need to ignore dashes (" - ") from apache solr query search
body: <p>I'm building a Symfony 1.4 application using apache solr to search through a music database.  I'm using the tjSolrDoctrineBehaviorPlugin to port apache solr to my Symfony 1.4 / Doctrine 1.2 app.  I'm new to using apache solr.</p>
  
  <p>The problem I'm getting is that when I type in the string "Katy Perry - Firework", I get only the results for "Katy Perry" and it seems like everything after the dash "-" in the query is ignored.  If I just enter "KatY Perry Firework", the search works properly and the exact song is retrieved.  I'm not sure why the dash messes up the searching.  I thought the WordDelimiterFilterFactory discards non-alpha-numeric characters.  Are my parameters wrong?</p>
  
  <p>How do I use the tokenizer/filters to ignore dashes or " - " (space dash space) string as I'm pretty sure users will be using dashes in the search bar a lot to delineate song from artist (" - ").</p>
  
  <p>Here's my schemal.xml:</p>
  
  <pre><code>    &lt;fieldType name="text" class="solr.TextField" positionIncrementGap="100"&gt;
    &lt;analyzer type="index"&gt;
      &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
      &lt;!-- in this example, we will only use synonyms at query time
      &lt;filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/&gt;
      --&gt;
      &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/&gt;
      &lt;filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/&gt;
      &lt;filter class="solr.RemoveDuplicatesTokenFilterFactory"/&gt;
    &lt;/analyzer&gt;
    &lt;analyzer type="query"&gt;
      &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
      &lt;!-- &lt;filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/&gt; --&gt;
      &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/&gt;
      &lt;filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/&gt;
      &lt;filter class="solr.RemoveDuplicatesTokenFilterFactory"/&gt;
    &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  </code></pre>
  
  <p>Thanks.</p>