RE: SolrJ + Post

2011-10-14 Thread Rohit
16:54 To: solr-user@lucene.apache.org Subject: Re: SolrJ + Post Not the OP, but I put it in on /one/ of my solr custom handlers that acts as a proxy to itself (ie the server its part of). It basically rewrites the incoming query (usually short 50-250 chars at most) to a set of very long queries and

Re: SolrJ + Post

2011-10-14 Thread Yury Kats
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(

Re: SolrJ + Post

2011-10-14 Thread Sujit Pal
Not the OP, but I put it in on /one/ of my solr custom handlers that acts as a proxy to itself (ie the server its part of). It basically rewrites the incoming query (usually short 50-250 chars at most) to a set of very long queries and passes them in parallel to the server, gathers up the results a

Re: SolrJ + Post

2011-10-14 Thread Walter Underwood
Why do you want to use POST? It is the wrong HTTP request type for search results. GET is for retrieving information from the server, POST is for changing information on the server. POST responses cannot be cached (see HTTP spec). POST requests do not include the arguments in the log, which ma

Re: SolrJ + Post

2011-10-14 Thread Sujit Pal
If you use the CommonsHttpSolrServer from your client (not sure about the other types, this is the one I use), you can pass the method as an argument to its query() method, something like this: QueryResponse rsp = server.query(params, METHOD.POST); HTH Sujit On Fri, 2011-10-14 at 13:29 +, Ro

RE: SolrJ + Post

2011-10-14 Thread Rohit
y Kats [mailto:yuryk...@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

Re: SolrJ + Post

2011-10-14 Thread Yury Kats
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?