title: Solr: find documents that contain a field value that a query string starts or ends with
body: <p>I want to find documents that contain a field value that a query string starts or ends with -- a "backwards query" (or whatever it's called).</p>
  
  <p>Say I have a document with the following field value:</p>
  
  <pre><code>allowed_hosts: *.example.org
  </code></pre>
  
  <p>I want a query for <code>host1.example.org</code> to match this.</p>
  
  <p>It would be nice to support a wildcard character (stored in the documents), but not mandatory.</p>