title: Solr query: stop words, OR and AND weirdness
body: <p>We are using Solr 3.5 with schema that has the following field declaration:</p>
  
  <pre><code>&lt;fieldType name="fieldN" class="solr.TextField" positionIncrementGap="100"&gt;
    &lt;analyzer type="index"&gt;
      &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
      &lt;filter class="solr.WordDelimiterFilterFactory"
              generateWordParts="0" generateNumberParts="0" catenateWords="0" catenateNumbers="0" 
              catenateAll="0" splitOnCaseChange="1" splitOnNumerics="0" preserveOriginal="1"/&gt;
      &lt;filter class="solr.LengthFilterFactory" min="2" max="256"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.StopFilterFactory"
              ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true"
              /&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.LengthFilterFactory" min="2" max="256"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.StopFilterFactory"
              ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true"
              /&gt;
      &lt;filter class="solr.PorterStemFilterFactory"/&gt;
    &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  </code></pre>
  
  <p>When we send a query like this:</p>
  
  <pre><code>field1:"term1"
  </code></pre>
  
  <p>Solr returns results.</p>
  
  <p>When we run this query we still get results:</p>
  
  <pre><code>field1:"term1" AND (field2:term2 OR field3:term2)
  </code></pre>
  
  <p>While <em>term2</em> is a stop word and <em>term1</em> is a regular word.</p>
  
  <p>But when we send a query like this:</p>
  
  <pre><code>field1:"term1" AND (field2:term2 OR field3:term2 OR field4:term2)
  </code></pre>
  
  <p>Nothing returns.</p>
  
  <p>We also noticed that when we do something like:</p>
  
  <pre><code>(field1:"term1" AND (field2:term2 OR field3:term2)) OR (field1:"term1" AND field4:term2)
  </code></pre>
  
  <p>works too, but as the real query should search for one term in about 200 fields, this option is less preferred.</p>
  
  <p>Thanks.</p>