title: ignore or avoid "undefined field" error with Solr dynamic schema field
body: <p>In my Solr schema, I have a dynamic field which may or may not exist on documents:</p>
  <pre><code>&lt;field name=&quot;removed_*&quot; type=&quot;pdate&quot; sortMissingLast=&quot;true&quot; indexed=&quot;true&quot; stored=&quot;true&quot; multiValued=&quot;true&quot; uninvertible=&quot;true&quot; omitPositions=&quot;true&quot; /&gt;
  </code></pre>
  <p>All of my searches must check that the field is <strong>not</strong> present:</p>
  <p><code>-removed_${uuid}:[0 TO *]</code></p>
  <p>When I search this on documents that don't yet contain that UUID, I get an error:</p>
  <blockquote>
  <p>&quot;undefined field: &quot;removed_65bc705e-2bf7-4ba5-8809-bf84e8538e62&quot;</p>
  </blockquote>
  <p>Is there a way to avoid this without programatically checking the dynamic schema (<code>schema/fields</code> API) beforehand?</p>