yggdrashill/post-big-extract-query

Solarium plugin converting GET request into POST, for big extract Solr's query, to avoid ERROR URI limitation HTTP 414 in case there are too many characters on literals parameter.

v1.0.0 2021-07-05 08:19 UTC

This package is auto-updated.

Last update: 2024-05-05 22:31:22 UTC


README

Solarium plugin for post big extract Solr query. The Solarium PHP library (v. 5.2.0) is affected by an issue: posting extract query with a lot and/or big literals may lead to HTTP 414 "Uri too long" error. So I made this plugin: when literals parameters are too long, they are removed from URI and inserted into post's multipart body.

es:

$plugin_PostBigExtractRequest = new PostBigExtractRequest();
$plugin_PostBigExtractRequest->setCharset( 'UTF-8' );
$client->registerPlugin('postbigextractrequest', $plugin_PostBigExtractRequest);

Tested with Solarium:

  • 5.2.0
  • 6.1.2

Submitted to Solarium organization (follow the issue) to be included or solved into future release.