title: How to search in single field solr
body: <p>I am using SolrJ api for searching. I have already indexed tables from my database but I have problem when trying query fields.</p>
  
  <blockquote>
  <pre><code>query.setQuery("Jack");
  query.setFields("Name", "City", "Spouse_name");
  query.setStart(0);    
  query.setRows(100);   
  QueryResponse response = solr.query(query);
  </code></pre>
  </blockquote>
  
  <p>Like in example code when I query "Jack" I want to search only in field "Name" and only print resoults from rest fields but when I query searching "Jack" in "Name" and "Spouse_name". Can someone tell me how to fix it? </p>