Increase maximum query length from 1000 to 4096
Resolves #169
Change-Id: I170c60e7bd06a1f4e806b88eec48254ac895e6f5
diff --git a/Changes b/Changes
index c09b288..ce13dac 100755
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+ - Increased max query length from 1000 to 4096 characters. (kupietz)
+
0.45 2022-05-20
- Added confidential client support to OAuth. (diewald)
- Added OAuth client authorization handling. (diewald)
diff --git a/lib/Kalamar/Controller/Search.pm b/lib/Kalamar/Controller/Search.pm
index b602bec..c2f48c0 100644
--- a/lib/Kalamar/Controller/Search.pm
+++ b/lib/Kalamar/Controller/Search.pm
@@ -30,7 +30,7 @@
# Validate user input
my $v = $c->validation;
- $v->optional('q', 'trim')->size(1,1000);
+ $v->optional('q', 'trim')->size(1,4096);
$v->optional('ql')->in(qw/poliqarp cosmas2 annis cql fcsql/);
$v->optional('collection', 'trim'); # Legacy
$v->optional('cq', 'trim'); # New