Hi,

Solr Search in my machine is returning only 7 results. I use .net console 
application to integrate solr. please find the below code

var solr = ServiceLocator.Current.GetInstance<ISolrOperations<Post>>();

            // Run a basic search, with only keywords
            var posts = solr.Query(new SolrQuery(keywords));

            if (posts.Count == 0)
            {
                Console.WriteLine("No results returned");
                return;
            }


            for (int i = 0; i < posts.Count-1; i++)
            {
                Console.WriteLine("Code: " + posts[i].code + "  - Name: " + 
posts[i].name);
                Console.Write(Environment.NewLine);
            }


Regards,

Vidhya V

Senior Software Engineer

+91 7907186078 | Skype: connect.vidhyarajeev


CCS Technologies

Connect. Collaborate. Create.

www.ccstechnologies.in<http://www.ccstechnologies.in/>   Connect with us on 
LinkedIn<https://www.linkedin.com/company-beta/215904?pathWildcard=215904>






<https://www.linkedin.com/company/215904?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A215904%2Cidx%3A3-1-3%2CtarId%3A1481690681929%2Ctas%3Accs%20tech>

Reply via email to