[ http://jira.dspace.org/jira/browse/DS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11541#action_11541 ]
Flávio Botelho commented on DS-564: ----------------------------------- That's what i thought first, but then i realized in some use cases users might want to use wildcards and that escape function also escape them: http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/src/java/org/apache/lucene/queryParser/QueryParser.java So maybe it only ':' we want to escape for the general use case? In our specific case the escape function would work fine, but i dunno if other instances have users using wildcards or other lucene special chars like '~'? > Advanced Search doesnt treat ':' properly > ------------------------------------------ > > Key: DS-564 > URL: http://jira.dspace.org/jira/browse/DS-564 > Project: DSpace 1.x > Issue Type: Bug > Components: XMLUI > Affects Versions: 1.5.2 > Reporter: Flávio Botelho > Priority: Minor > Attachments: > patch_properly_escape_double_points_from_lucene_during_search.txt > > > If you try to search for a field (ie title) with the character ":" almost > surely no document matches will be found because the character is passed > literally to lucene. > Attached is a patch to escape this character... > Maybe other special characters should be escaped too, but i am not sure. just > escaping ':' allows the users to use wildcards if they want to... (Doubt that > is used is our case, but not much sure about general dspace usage) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.dspace.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel