mirror of https://github.com/apache/lucene.git
SOLR-612: allow POST for queries
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@678592 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9bcace789e
commit
4f03b00164
|
@ -28,6 +28,7 @@ import org.apache.solr.client.solrj.request.UpdateRequest;
|
|||
import org.apache.solr.client.solrj.response.QueryResponse;
|
||||
import org.apache.solr.client.solrj.response.SolrPingResponse;
|
||||
import org.apache.solr.client.solrj.response.UpdateResponse;
|
||||
import org.apache.solr.client.solrj.SolrRequest.METHOD;
|
||||
import org.apache.solr.client.solrj.beans.DocumentObjectBinder;
|
||||
import org.apache.solr.common.SolrInputDocument;
|
||||
import org.apache.solr.common.params.SolrParams;
|
||||
|
@ -126,6 +127,10 @@ public abstract class SolrServer implements Serializable
|
|||
return new QueryRequest( params ).process( this );
|
||||
}
|
||||
|
||||
public QueryResponse query(SolrParams params, METHOD method) throws SolrServerException {
|
||||
return new QueryRequest( params, method ).process( this );
|
||||
}
|
||||
|
||||
/**
|
||||
* SolrServer implementations need to implement a how a request is actually processed
|
||||
*/
|
||||
|
|
|
@ -46,6 +46,12 @@ public class QueryRequest extends SolrRequest
|
|||
super( METHOD.GET, null );
|
||||
query = q;
|
||||
}
|
||||
|
||||
public QueryRequest( SolrParams q, METHOD method )
|
||||
{
|
||||
super( method, null );
|
||||
query = q;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the params 'QT' parameter if it exists
|
||||
|
|
Loading…
Reference in New Issue