title: Not able to get results in Solr
body: <p>I do a full-import and I get the following response for the below command
  <a href="http://localhost:8983/solr/karan/dataimport?command=full-import&amp;commit=true&amp;clean=false" rel="nofollow">http://localhost:8983/solr/karan/dataimport?command=full-import&amp;commit=true&amp;clean=false</a></p>
  
  <p>But when I run the following snippet
  public class SolrJSearcher {</p>
  
  <pre><code> public static void main(String[] args) throws SolrServerException, IOException {
         SolrClient  solr = new HttpSolrClient("http://localhost:8983/solr/karan");
       SolrQuery query = new SolrQuery();
      query.set("q", "karan");
       QueryResponse response = solr.query(query);
       SolrDocumentList results = response.getResults();
       for (int i = 0; i &lt; results.size(); ++i) {
         System.out.println(results.get(i));
       }
     }
   }
  </code></pre>
  
  <p>I get no results even though two rows are there.If I change the q to <em>:</em> I get two results without the name karan.Can you please clarify what is going wrong in this If I try in the sample project techproducts with the same changes I get the results as expected.
  Solrconfig.xml</p>
  
  <pre><code>  &lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"&gt;
       &lt;lst name="defaults"&gt;
            &lt;str name="config"&gt;data-config.xml&lt;/str&gt;
       &lt;/lst&gt;
          &lt;/requestHandler&gt;
  </code></pre>
  
  <p>data-config.xml</p>
  
  <pre><code>&lt;dataConfig&gt;
    &lt;dataSource type="JdbcDataSource" 
                driver="com.mysql.jdbc.Driver"
                url="jdbc:mysql://localhost:3306/greed" 
                user="root" 
                password="kalkoti"/&gt;
    &lt;document&gt;
      &lt;entity name="id" 
              query="select id,name from testing"&gt;
      &lt;/entity&gt;
    &lt;/document&gt;
  &lt;/dataConfig&gt;
  </code></pre>
  
  <p>I have created the collection karan using
  solr create -c karan</p>
  
  <p>Response from full-import</p>
  
  <pre><code>&lt;response&gt;
  &lt;lst name="responseHeader"&gt;
  &lt;int name="status"&gt;0&lt;/int&gt;
  &lt;int name="QTime"&gt;12&lt;/int&gt;
  &lt;/lst&gt;
  &lt;lst name="initArgs"&gt;
  &lt;lst name="defaults"&gt;
  &lt;str name="config"&gt;data-config.xml&lt;/str&gt;
  &lt;/lst&gt;
  &lt;/lst&gt;
  &lt;str name="command"&gt;full-import&lt;/str&gt;
  &lt;str name="status"&gt;idle&lt;/str&gt;
  &lt;str name="importResponse"/&gt;
  &lt;lst name="statusMessages"&gt;
  &lt;str name="Total Requests made to DataSource"&gt;1&lt;/str&gt;
  &lt;str name="Total Rows Fetched"&gt;2&lt;/str&gt;
  &lt;str name="Total Documents Processed"&gt;2&lt;/str&gt;
  &lt;str name="Total Documents Skipped"&gt;0&lt;/str&gt;
  &lt;str name="Full Dump Started"&gt;2015-07-06 13:55:26&lt;/str&gt;
  &lt;str name=""&gt;
  Indexing completed. Added/Updated: 2 documents. Deleted 0 documents.
  &lt;/str&gt;
  &lt;str name="Committed"&gt;2015-07-06 13:55:26&lt;/str&gt;
  &lt;str name="Time taken"&gt;0:0:0.431&lt;/str&gt;
  &lt;/lst&gt;
  &lt;/response&gt;
  </code></pre>