0
而從Solr中獲取數據,我有錯誤的打擊同時獲得來自Solr的數據,我有錯誤的打擊
具有相同鍵的項已被添加
public static void Solryeg()
{
ISolrOperations<SolrContent> solr = ServiceLocator.Current
.GetInstance<ISolrOperations<SolrContent>>();
var q = solr.Query(SolrQuery.All);
}
SolrContent.cs
public class SolrContent
{
[SolrUniqueKey("ContentId")]
public int ContentId { get; set; }
[SolrField("ContentName")]
public string ContentName { get; set; }
[SolrField("ContentTitle")]
public string ContentTitle { get; set; }
[SolrField("ContentIsActive")]
public bool ContentIsActive { get; set; }
[SolrField("ContentRatingEnabled")]
public bool ContentRatingEnabled { get; set; }
...