Re: Stemming words Using Solr

2015-09-04 Thread Ritesh Sinha
Adding json.nl=map instead of wt.json returns results in xml format. 0 2

Re: Stemming words Using Solr

2015-09-04 Thread Upayavira
I don't have a code snippet - I just found it in the solrj source code. As to using JSON, I'm not sure of the structure of the JSON you are getting back, but you might find adding json.nl=map, which changes the way it returns named lists, which may be easier to parse. Upayavira On Fri, Sep 4, 20

Re: Stemming words Using Solr

2015-09-04 Thread Ritesh Sinha
This is the code which i have written to get the stemmed word. public class URLConnectionReader { public static void main(String[] args) throws Exception { URL solr = new URL( "http://localhost:8983/solr/ "+args[0]+"/analysis/field?wt=json&analysis.showmatch=true&analys

Re: Stemming words Using Solr

2015-09-04 Thread Upayavira
Yes, look at the one I mentioned further up in this thread, which is a part of SolrJ: FieldAnalysisRequest That uses the same HTTP call in the backend, but formats the result in a Java friendly manner. Upayavira On Fri, Sep 4, 2015, at 05:52 AM, Ritesh Sinha wrote: > Yeah, I got. Thanks. > > It

Re: Stemming words Using Solr

2015-09-03 Thread Ritesh Sinha
Yeah, I got. Thanks. It returns a json which have the stemmed words.I just need to parse it and get the value. But, isn't there any JAVA API available for it ? On Thu, Sep 3, 2015 at 7:58 PM, Upayavira wrote: > yes, the URL should be something like: > > > http://localhost:8983/solr/images/anal

Re: Stemming words Using Solr

2015-09-03 Thread Jack Krupansky
The # in the URL says to send the request to the admin UI, which of course returns an HTML web page. Instead, send the analysis URL fragment directly to the analysis API (not UI) for the Solr core, without the #. -- Jack Krupansky On Thu, Sep 3, 2015 at 8:45 AM, Ritesh Sinha < kumarriteshranjansi

Re: Stemming words Using Solr

2015-09-03 Thread Upayavira
yes, the URL should be something like: http://localhost:8983/solr/images/analysis/field?wt=json&analysis.showmatch=true&analysis.fieldvalue=&analysis.fieldname= Upayavira On Thu, Sep 3, 2015, at 03:23 PM, Jack Krupansky wrote: > The # in the URL says to send the request to the admin UI, which of

Re: Stemming words Using Solr

2015-09-03 Thread Ritesh Sinha
Hi, I observed the inspect element and wrote a code to give back the content. I have included the url which was getting generated. public class URLConnectionReader { public static void main(String[] args) throws Exception { URL solr = new URL( " http://localhost:8983/s

Re: Stemming words Using Solr

2015-09-03 Thread Upayavira
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 t

Stemming words Using Solr

2015-09-03 Thread Ritesh Sinha
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