Yes, you can use HTTP POST with SolrJ for queries. SolrRequest request = new QueryRequest((SolrParams)query, SolrRequest.METHOD.POST); QueryResponse response = new QueryResponse(client.request(request), client);
https://lucene.apache.org/solr/6_2_1/solr-solrj/org/apache/solr/client/solrj/SolrRequest.html M. -----Original message----- > From:Bram Van Dam <bram.van...@intix.eu> > Sent: Friday 14th October 2016 15:37 > To: solr-user@lucene.apache.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 :-( > > Thanks > > - Bram >