You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Yury Kats <yu...@yahoo.com> on 2011/10/14 15:51:25 UTC

Re: SolrJ + Post

On 10/14/2011 9:29 AM, Rohit wrote:
> I want to user POST instead of GET while using solrj, but I am unable to
> find a clear example for it. If anyone has implemented the same it would be
> nice to get some insight.

To do what? Submit? Query? How do you use SolrJ now?

Re: SolrJ + Post

Posted by Yury Kats <yu...@yahoo.com>.
On 10/14/2011 12:11 PM, Rohit wrote:
> I want to query, right now I use it in the following way,
> 
> CommonsHttpSolrServer server = new CommonsHttpSolrServer("URL HERE");
> SolrQuery sq = new SolrQuery();
> sq.add("q",query);
> QueryResponse qr = server.query(sq);

QueryResponse qr = server.query(sq, METHOD.POST);

RE: SolrJ + Post

Posted by Rohit <ro...@in-rev.com>.
I want to query, right now I use it in the following way,

CommonsHttpSolrServer server = new CommonsHttpSolrServer("URL HERE");
SolrQuery sq = new SolrQuery();
sq.add("q",query);
QueryResponse qr = server.query(sq);

Regards,
Rohit
-----Original Message-----
From: Yury Kats [mailto:yurykats@yahoo.com] 
Sent: 14 October 2011 13:51
To: solr-user@lucene.apache.org
Subject: Re: SolrJ + Post

On 10/14/2011 9:29 AM, Rohit wrote:
> I want to user POST instead of GET while using solrj, but I am unable to
> find a clear example for it. If anyone has implemented the same it would
be
> nice to get some insight.

To do what? Submit? Query? How do you use SolrJ now?