On Thu, Sep 3, 2015, at 11:19 AM, Ritesh Sinha wrote: > I am learning solr and want to use solr for stemming words.I'll be > passing > the word to the solr and it should send the stemmed word back.I know how > to > configure solr core for different stemming patterns and also i am able to > view their stemmed words in the analyzer (solr admin ui) but i am not > sure > how to achieve this using java code.I am able to index and query using > java > api.
Use your browser's "developer tools" to see what is going on behind the scenes when you use the admin UI analysis tab. It is just an HTTP call that you can replicate from Java. I see that SolrJ has a FieldAnalysisRequest that I suspect does the very same thing. Hope that helps. Upayavira