title: Solr - case-insensitive search do not work
body: <p>I want to apply case-insensitive search for field <code>myfield</code> in solr.</p>
  
  <p>I googled a bit for that , and i found that , i need to apply <code>LowerCaseFilterFactory</code> to Field Type and field should be of <code>solr.TextFeild</code>. </p>
  
  <p>I applied that in my <code>schema.xml</code> and re-index the data, then also my search seems to be case-sensitive.</p>
  
  <p>Below is search that i perform.</p>
  
  <pre><code>http://localhost:8080/solr/select?q=myfield:"cloud university"&amp;hl=on&amp;hl.snippets=99&amp;hl.fl=myfield
  </code></pre>
  
  <p>Below is definition for field type</p>
  
  <pre><code> &lt;fieldType name="text_en_splitting" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true"&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;!-- Case insensitive stop word removal.
            add enablePositionIncrements=true in both the index and query
            analyzers to leave a 'gap' for more accurate phrase queries.
          --&gt;
          &lt;filter class="solr.StopFilterFactory"
                  ignoreCase="true"
                  words="stopwords_en.txt"
                  enablePositionIncrements="true"
                  /&gt;
          &lt;filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/&gt;
          &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
          &lt;filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/&gt;
          &lt;filter class="solr.PorterStemFilterFactory"/&gt;
        &lt;/analyzer&gt;
        &lt;analyzer type="query"&gt;
          &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
          &lt;filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/&gt;
          &lt;filter class="solr.StopFilterFactory"
                  ignoreCase="true"
                  words="stopwords_en.txt"
                  enablePositionIncrements="true"
                  /&gt;
          &lt;filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/&gt;
          &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
          &lt;filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/&gt;
          &lt;filter class="solr.PorterStemFilterFactory"/&gt;
        &lt;/analyzer&gt;
      &lt;/fieldType&gt;
  </code></pre>
  
  <p>and below is my field definition</p>
  
  <pre><code> &lt;field name="myfield" type="text_en_splitting" indexed="true" stored="true" /&gt;
  </code></pre>
  
  <p>Not sure , what is wrong with this.
  Please help me to resolve this.</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Debug Query </p>
  
  <pre><code>&lt;lst name="debug"&gt;
      &lt;str name="rawquerystring"&gt;
          "cloud university" AND guid:268406b6-db65-49da-848a-c59248f170db
      &lt;/str&gt;
      &lt;str name="querystring"&gt;
          "cloud university" AND guid:268406b6-db65-49da-848a-c59248f170db
      &lt;/str&gt;
      &lt;str name="parsedquery"&gt;
          +PhraseQuery(CC:"cloud univers") +guid:268406b6-db65-49da-848a-c59248f170db
      &lt;/str&gt;
      &lt;str name="parsedquery_toString"&gt;
          +CC:"cloud univers" +guid:268406b6-db65-49da-848a-c59248f170db
      &lt;/str&gt;
      &lt;lst name="explain"&gt;
          &lt;str name="KSYS_20120805_1100"&gt;
              12.572915 = (MATCH) sum of: 0.03595598 = weight(CC:"cloud univers" in 1560524), product of: 0.51819557 = queryWeight(CC:"cloud univers"), product of: 8.881522 = idf(CC: cloud=4798 univers=625207) 0.05834536 = queryNorm 0.06938689 = fieldWeight(CC:"cloud univers" in 1560524), product of: 1.0 = tf(phraseFreq=1.0) 8.881522 = idf(CC: cloud=4798 univers=625207) 0.0078125 = fieldNorm(field=CC, doc=1560524) 12.536959 = (MATCH) weight(guid:268406b6-db65-49da-848a-c59248f170db in 1560524), product of: 0.85526216 = queryWeight(guid:268406b6-db65-49da-848a-c59248f170db), product of: 14.658615 = idf(docFreq=1, maxDocs=1709587) 0.05834536 = queryNorm 14.658615 = (MATCH) fieldWeight(guid:268406b6-db65-49da-848a-c59248f170db in 1560524), product of: 1.0 = tf(termFreq(guid:268406b6-db65-49da-848a-c59248f170db)=1) 14.658615 = idf(docFreq=1, maxDocs=1709587) 1.0 = fieldNorm(field=guid, doc=1560524)
          &lt;/str&gt;
      &lt;/lst&gt;
      &lt;str name="QParser"&gt;LuceneQParser&lt;/str&gt;
      &lt;lst name="timing"&gt;
          &lt;double name="time"&gt;60.0&lt;/double&gt;
          &lt;lst name="prepare"&gt;
              &lt;double name="time"&gt;1.0&lt;/double&gt;
              &lt;lst name="org.apache.solr.handler.component.QueryComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.FacetComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.MoreLikeThisComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.HighlightComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.StatsComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.DebugComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
          &lt;/lst&gt;
          &lt;lst name="process"&gt;
              &lt;double name="time"&gt;59.0&lt;/double&gt;
              &lt;lst name="org.apache.solr.handler.component.QueryComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.FacetComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.MoreLikeThisComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.HighlightComponent"&gt;
                  &lt;double name="time"&gt;57.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.StatsComponent"&gt;
                  &lt;double name="time"&gt;0.0&lt;/double&gt;
              &lt;/lst&gt;
              &lt;lst name="org.apache.solr.handler.component.DebugComponent"&gt;
                  &lt;double name="time"&gt;2.0&lt;/double&gt;
              &lt;/lst&gt;
          &lt;/lst&gt;
      &lt;/lst&gt;
  &lt;/lst&gt;
  </code></pre>