Note that there are some explanatory texts on larger screens.

plurals
  1. POSolrnet with Web Forms
    text
    copied!<p>I'm new in SolrNet and Asp.Net also :) please hit me with answer, HOWTO configure SolrNet for web forms.</p> <p><a href="http://clip2net.com/clip/m12007/1276888290-clip-13kb.png" rel="nofollow noreferrer">400 http error http://clip2net.com/clip/m12007/1276888290-clip-13kb.png</a> </p> <pre><code> public partial class CreateIndex : System.Web.UI.Page { //http://localhost:8983/solr private static readonly string solrURL = ConfigurationManager.AppSettings["solrUrl"]; protected void Page_Load(object sender, EventArgs e) { var connection = new SolrConnection(solrURL); Startup.Init&lt;SolrProductDTO&gt;(connection); Entities db = new Entities(); var index = (from i in db.ItemBases.OfType&lt;Product&gt;() where i.Quantity != null &amp;&amp; i.Category != null select new SolrProductDTO() { Category = i.Category.Name, Id = i.Id, InStock = i.IsDeleted, Timestamp = i.CreatedDate, Description = i.Description, Title = i.Name }).ToList(); var solr = ServiceLocator.Current.GetInstance&lt;ISolrOperations&lt;SolrProductDTO&gt;&gt;(); solr.Delete(SolrQuery.All); solr.Add(index); solr.Commit(); } </code></pre> <p>here comes my DTO:</p> <pre><code>public class SolrProductDTO { [SolrUniqueKey("id")] public int Id { get; set; } [SolrField("cat")] public string Category { get; set; } [SolrField("title")] public string Title { get; set; } [SolrField("desc")] public string Description { get; set; } [SolrField("inStock")] public bool InStock { get; set; } [SolrField("timestamp")] public DateTime Timestamp { get; set; } } </code></pre> <p>Please help!!!!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload