fixes #6508 - fixing package group search

With the removal of the lowercase filter previously
in the kt_name_analyzer, filters would work properly
but search were still being downcased by default, thus
anything with an uppercase letter could not be searched for

also the controller logic had some incorrect code