Adding json.nl=map instead of wt.json
returns results in xml format.
0
2
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo