title: Looking for Hello World program for Solr.NET in C#
body: <p>I have Solr server running (on Linux box, not that it matter), it is loaded with 2M documents and search works fine in Java. </p>
  
  <p>I need however to write C# (client) program to query it. I downloaded Solr.NET but I am confused what to begin with. Solutions included with it do not compile, and browsing through C# it does not look like the program is doing what I need to do.</p>
  
  <p>Does anyone have a sort of Hello World program for Solr.NET in C#? Below I will publish Java version of what I and looking for, C# version anyone? Oh, and please, what minimum set of assemblies do I need to include into such simple client program? Thank you</p>
  
  <pre><code>import org.apache.solr.client.solrj.SolrQuery;
  import org.apache.solr.client.solrj.SolrServer;
  import org.apache.solr.client.solrj.impl.HttpSolrServer;
  import org.apache.solr.client.solrj.response.QueryResponse;
  import org.apache.solr.common.SolrDocumentList;
  
  
  public class SolrHeloWorld // Java
  {
  
      public static void main(String[] args)
      {
          // Connect to server
          SolrServer solr = new HttpSolrServer  ("http://192.168.1.211:8983/solr/collection1");
  
          // Query for search term 'banana'
          SolrQuery query = new SolrQuery();
          query.setQuery("banana");
          query.setStart(0);
          query.setRows(50);
          query.set("defType", "edismax");
  
          try
          {
              QueryResponse response = solr.query(query);
  
              // Print results
              SolrDocumentList results = response.getResults();
              for (int i = 0; i &lt; results.size(); i++)
              {
                  System.out.println(results.get(i));
              }
          }
          catch (Exception e)
          {
              System.out.println("Error: " + e.getMessage());
          }
      }
  }
  </code></pre>