title: Solr Query Syntax for 1 Item in an Array Field
body: <p>I have a solr index whose contents get populated with xml something like:</p>
  
  <pre><code>&lt;add&gt;
      &lt;doc&gt;
          &lt;field name='id'&gt;1234&lt;/field&gt;
  
          &lt;field name='fileText'&gt;fileId:1162052;fileName:blah_purchasing-policy.pdf; The parsed text of the file&lt;/field&gt;
          &lt;field name='fileText'&gt;fileId:2502611;fileName:blah_leasing-policy.pdf; The parsed text of the file&lt;/field&gt;
  </code></pre>
  
  <p>...
          
      </p>
  
  <p>Note that the fileText field is an array type in my solr schema.</p>
  
  <p>I was hoping to be able to find documents with documents whose file names contain leasing and those leasing files contain TBD using a query something like:</p>
  
  <pre><code>fileName:("fileName\: leasing"~5 AND TBD)
  </code></pre>
  
  <p>However IF there is a non leasing file whose text contains TBD then it will fetch the document even though the leasing file lacks it.</p>
  
  <p>How can I isolate to strictly one element of a an array that meets 2 discriminators (in this case the fileName: leasing and the text TBD)</p>