#2759: Search query is too simplistic
----------------------------------------------------+-----------------------
Reporter: Andres Salomon <[EMAIL PROTECTED]> | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone: 0.10
Component: search system | Version: none
Severity: major | Resolution:
Keywords: |
----------------------------------------------------+-----------------------
Comment (by Andres Salomon <[EMAIL PROTECTED]>):
I held off on escaping % and _ because my tests showed it doing weird
things when I tried it. For example, if you try searching for "%a%", it
will return all results in the database, and the javascript highlighting
will not match anything. If you escape the %'s (in the code itself, not
in the search query), it will return no results. If you try searching for
"99%" (and actually have a wiki page w/ that includes the string "99%"),
it will return just that page, and the javascript highlighting will
highlight the "99%" string. If you escape the %'s, it will return no
results, which is clearly not what is intended.
Thus, I held off on the % and _ escaping for now; I would rather deal w/
that issue separately.
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2759>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets