Bug 44475 - provide user feedback for missing (or invalid) search parameter
Summary: provide user feedback for missing (or invalid) search parameter
Status: NEW
Alias: None
Product: Lenya
Classification: Unclassified
Component: Lucene Integration (show other bugs)
Version: Trunk
Hardware: All All
: P3 normal
Target Milestone: 2.0.1
Assignee: Lenya Developers
Depends on:
Reported: 2008-02-23 08:02 UTC by Juergen Ragaller
Modified: 2008-03-26 04:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Ragaller 2008-02-23 08:02:55 UTC
currently the search usecase results in a error when the search string

a) is empty (occurs
when clicking on "Go" or when clicking on a language icon on the search results page (see
b) starts with a "+"
c) starts with a "*"

(maybe some more...)

I think it would
be nice to let the user know what happened and describe the problem on the (empty) search
results page

a) "Your search  must not contain more than 1 character"
b)/c) "Your search
 must not start with the keyword + or *"

I was trying to find the right place to check
the parameters and provide feedback

- regex matcher in lucene/sitemap.xmap?
- implement
the parameter checking in search.jx?
- or rather using java?
Comment 1 Andreas Hartmann 2008-03-26 04:05:39 UTC
IMO the SearchGenerator should handle this, so it's a Cocoon bug. They would certainly be glad about a patch, though. Maybe we can ask on the Cocoon user mailing list if someone has already resolved this issue.

BTW, empty search strings are handled now (no search is issued).