Yes, you can use HTTP POST with SolrJ for queries.
SolrRequest request = new QueryRequest((SolrParams)query,
QueryResponse response = new QueryResponse(client.request(request), client);
> From:Bram Van Dam <bram.van...@intix.eu>
> Sent: Friday 14th October 2016 15:37
> To: firstname.lastname@example.org
> Subject: SolrJ & Ridiculously Large Queries
> Hey folks,
> I just noticed that Jetty barfs with HTTP 414 when request URIs are very
> large, which makes sense. I think the default limit is ~8k.
> Unfortunately I've got users who insist on executing queries that are
> 16k (!1!?!?) in size.
> Two questions:
> 1) is it possible to POST these oversized monstrosities instead?
> 2) can I get SolrJ to POST them?
> Suggestions are welcome!
> Quick disclaimer: I don't write the queries, and only the default query
> parser is available, so trying to reduce the query size is not an option :-(
> - Bram