[
https://issues.apache.org/jira/browse/JSPWIKI-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18137349#comment-18137349
]
ASF subversion and git services commented on JSPWIKI-501:
---------------------------------------------------------
Commit 7b71386b43ccf6849319186ceec2a837d6b06a29 in jspwiki's branch
refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=7b71386b4 ]
JSPWIKI-501 Let wildcard searches cross underscores
The analyzer splits page names and text on underscores, so the index holds
page and withunderscore for Page_WithUnderscore. A wildcard term is not
analyzed, so Page_* and snake_ca* looked for terms that do not exist and
found nothing, while Page* and the full name did work.
Wildcard and prefix terms that hold separators are now split on them and
matched as adjacent tokens, with the wildcard applied to the token it is in.
Terms without separators are handled as before.
> Search Cannot Find Terms With Underscores
> -----------------------------------------
>
> Key: JSPWIKI-501
> URL: https://issues.apache.org/jira/browse/JSPWIKI-501
> Project: JSPWiki
> Issue Type: Bug
> Components: Core & storage
> Affects Versions: 2.8.2
> Environment: Red Hat Linux
> Reporter: Stefan Bohn
> Priority: Minor
> Labels: pull-request-available
>
> http://www.jspwiki.org/wiki/BugSearchCannotFindTermsWithUnderscores
> I want to re-open this bug.
> We have many pages with a underscore in the pagename. These pages could not
> be found with Lucene, when the underscore is entered in the searchbox.
> Example:
> Pagename: Page_WithUnderscore
> Searchstring: Page* - search is ok
> Searchstring Page_* page is not listed in the search result
> Is this a bug, or must I change the search string, because of Lucene?
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)