#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]>):

 patch trac-search3 fixes the highlighting of quoted search terms in the
 results.  Previously, the code was doing a simplistic split(/\s+/) on the
 search terms, which means that something like "'core feature'" would be
 split into "'core" and "feature'", which wouldn't match anything
 (variations on that, such as "'core feature '", would partially match).

 This new patch uses the same regex that's used by the python code (in the
 first patch) to group search terms by quotes, and then proceeds to strip
 quotes when looking for matches.

-- 
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

Reply via email to