@@ -379,7 +379,7 @@ sub api_v1_GET_documents { | |||
my @out; | |||
my $q = sqlquery($dbh, "SELECT id FROM documents WHERE id IN (CALL get_document_by_words(?)) LIMIT ?,?", | |||
my $q = sqlquery($dbh, "SELECT id FROM documents WHERE id IN (CALL get_document_filter(?)) LIMIT ?,?", | |||
exists $qs->{filter} ? $qs->{filter} : undef, | |||
$qs->{pageSize} * $qs->{pageIndex}, | |||
$qs->{pageSize}); |