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.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:solarium-plugin
Requires
- php: >=7.1 || ^8.0
- solarium/solarium: ^5.0.0 || ^6.0.0
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.