Skip to content

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.

License

AndreaDiPietro-ADP/PostBigExtractRequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostBigExtractRequest

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages