Expand my Community achievements bar.

SOLVED

Restricting short search queries

Avatar

Level 2

Good morning.

Is there any way to configure, either AEM or dispatcher out of the box, to restrict search queries, where the length of the search parameter is less than a specified value?

For example   search.html?q=1    would not search the repository, and possibly return a 403 error, whereas search.html?q=123  would search as normal and return a 200 response

Many thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

I would implement this as a request filter.

Jörg

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

I would implement this as a request filter.

Jörg