Hello All, I am working MNC and doing Prototype using SolrNet and Solr. I have few questions and got stuck not able to move forward..
1. I have created a collection e.g Product without any field. 2. Using SolrNet.. created one Field like below..... public class Product { [SolrField("title")] public string title { get; set; } } 3. And below code is executed.. title is created as MultiValued as true. Startup.Init<Product>("http://localhost:8983/solr/product"); ISolrOperations<Product> solr = ServiceLocator.Current.GetInstance<ISolrOperations<Product>>(); // Product test = new Product() {title = new List<string>() { "changeme4" } }; Product test = new Product() { title = "changeme4" }; solr.Add(test); solr.Commit(); 4. When i try to access using SolrQueryResults<Product> results = solr.Query(new SolrQuery("title:\"changeme4\"")); It throws error as could not convert value 'system.collections.arraylist' to property 'title' of document type solr rest client.program+product' So i need to convert public string title { get; set; } as public ICollection<string> title { get; set; } But i want to create a set of Properties in my document. I really don't need to use ICollection and MultiValued as false. Please help me to resolve the issue to move forward.