Got it . Thank You for your help
Deepak "Please stop cruelty to Animals, help by becoming a Vegan" +91 73500 12833 deic...@gmail.com Facebook: https://www.facebook.com/deicool LinkedIn: www.linkedin.com/in/deicool "Plant a Tree, Go Green" On Mon, Jan 8, 2018 at 11:48 PM, Deepak Goel <deic...@gmail.com> wrote: > *Is this right?* > > SolrClient client = new HttpSolrClient.Builder("http:/ > /localhost:8983/solr/shakespeare/select").build(); > > SolrQuery query = new SolrQuery(); > query.setQuery("henry"); > query.setFields("text_entry"); > query.setStart(0); > > queryResponse = client.query(query); > > *This is still returning NULL* > > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > Virus-free. > www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > <#m_-1646772333528808550_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > > > Deepak > "Please stop cruelty to Animals, help by becoming a Vegan" > +91 73500 12833 > deic...@gmail.com > > Facebook: https://www.facebook.com/deicool > LinkedIn: www.linkedin.com/in/deicool > > "Plant a Tree, Go Green" > > On Mon, Jan 8, 2018 at 10:55 PM, Alexandre Rafalovitch <arafa...@gmail.com > > wrote: > >> I think you are missing /query handler endpoint in the URL. Plus actual >> search parameters. >> >> You may try using the admin UI to build your queries first. >> >> Regards, >> Alex >> >> On Jan 8, 2018 12:23 PM, "Deepak Goel" <deic...@gmail.com> wrote: >> >> > Hello >> > >> > *I am trying to search for documents in my collection (Shakespeare). The >> > code is as follows:* >> > >> > SolrClient client = new HttpSolrClient.Builder(" >> > http://localhost:8983/solr/shakespeare").build(); >> > >> > SolrDocument doc = client.getById("2"); >> > *However this does not return any document. What mistake am I making?* >> > >> > Thank You >> > Deepak >> > >> > Deepak >> > "Please stop cruelty to Animals, help by becoming a Vegan" >> > +91 73500 12833 >> > deic...@gmail.com >> > >> > Facebook: https://www.facebook.com/deicool >> > LinkedIn: www.linkedin.com/in/deicool >> > >> > "Plant a Tree, Go Green" >> > >> > <http://www.avg.com/email-signature?utm_medium=email& >> > utm_source=link&utm_campaign=sig-email&utm_content=webmail> >> > Virus-free. >> > www.avg.com >> > <http://www.avg.com/email-signature?utm_medium=email& >> > utm_source=link&utm_campaign=sig-email&utm_content=webmail> >> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >> > >> > >