Ticket #3192 (closed defect: fixed)
Searching username breaks on short usernames
| Reported by: | cjg | Owned by: | |
|---|---|---|---|
| Priority: | Intend to | Milestone: | EPrints 3.0.x (bugs go here) |
| Component: | - | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: | af05v@… |
Description (last modified by cjg) (diff)
Because username field uses full text search, it doesn't allow you to search for very short (2 or 3 char names)
This could be sorted by making a very simple "String" metafield type for fields like username. It would just need a
sub get_search_group { return 'set'; }
and
sub get_search_conditions_not_ex (copied from Set.pm)
.. then change many text fields to be "string" instead. eg.
- access - most fields
- eprint - dir
- history - datasetid
- request - email, requester_email (also docid should become an itemid)
- subject - subjectid, parents, ancestors
- user - username, pin
Change History
Note: See
TracTickets for help on using
tickets.
