asp.net - Solrnet with Web Forms -


I am also new to SolanNet and ASP.NET :) Please answer me, HOL Configure.

  public partial class CreateIndex: System.Web.UI.Page {// http: // localhost: 8983 / solr private static readonly string solrURL = ConfigurationManager.AppSettings ["SolrUrl"]; Protected Zero Page_Load (object sender, EventArgs e) {var connection = new SolrConnection (solrURL); Startup.Init & LT; SolrProductDTO & gt; (Connection); Organizations DB = New Institutions (); Var index = (db.text.exe & gt; product & gt; () where i.Quantity! = Null & amp; i.Category! = Tap New SolrProductDTO () Select {class = i.Category.Name} , Id = I.Id, InStock = i.Is deleted, 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 (); }  

Here are my DTOs:

  public square SolrProductDTO {[SolrUniqueKey ("id")] public int id {get; Set; } [Solarfeld ("cat")] get public string category { Set; } [Solarfeld ("title")] {Get the public string title; Set; } [SolrField ("desc")] public string description {get; Set; } [Solarfeld ("InStock")] Public Child Install {Receives; Set; } [Solarfeld ("Timestamp")] Get Public DateTime Timestamp { Set; }}  

Please help

what kind of error Are you looking Also, you own your schema. Do not show in Xml (Solar / Conf) I think the field definition for id, cat, title, desc, inStock and timestamp is there?


Comments