Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send request vis POST method. #308

Open
alisheykhi opened this issue Jan 13, 2021 · 0 comments
Open

How to send request vis POST method. #308

alisheykhi opened this issue Jan 13, 2021 · 0 comments

Comments

@alisheykhi
Copy link

I have a Facet with long quey. ّI got an error (URI too long) when I run this query inside spark executors. as I searched, Solrj sends requests via the GET method. I'm wondering who can I change the request method to POST in the solr option Map?

new QueryRequest(solrParams, SolrRequest.METHOD.POST);

I'm looking for something like this:

val option = Map( "zkhost" -> zkhost, "collection" -> collection, "expr" -> facetExpr, "method" -> POST )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant