title: How to select from solr use java?
body: <p>I save data in solr:</p>
  
  <pre><code>String solrUrl = "http://localhost:8984/solr";
  SolrServer solrServer = new HttpSolrServer( solrUrl );
  SolrInputDocument doc = new SolrInputDocument();
  doc.addField("id", "1");
  doc.addField("first_name", "Ann");
  doc.addField("last_name", "Smit");
  doc.addField("email", "test@test.com");
  try {
     solrServer.add(doc);
     solrServer.commit();
  } catch (SolrServerException e) {/* */}
  </code></pre>
  
  <p>And select data from solr:</p>
  
  <pre><code>SolrQuery query = new SolrQuery();
  query.setQuery("*:*");
  query.addFilterQuery("first_name:Ann*");
  query.addFilterQuery("last_name:Ann*");
  query.setFields("id","first_name","last_name","email");
  QueryResponse response = null;
  try {
      response = solrServer.query(query);
  } catch (SolrServerException e) {/* */ }
  SolrDocumentList list = response.getResults();
  </code></pre>
  
  <p>I have search criteria: first name <strong>or</strong> last name should contain value <code>Ann</code>. How to set <code>FilterQuery</code> for select saved data?</p>