[ 
https://issues.apache.org/jira/browse/JSPWIKI-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12672564#action_12672564
 ] 

Janne Jalkanen commented on JSPWIKI-501:
----------------------------------------

This is certainly the right way :-).

A quick googling suggests that it's because the standard Tokenizer treats "_" 
as a space, so "Page_WithUnderscore" is tokenized into two words: "Page" and 
"WithUnderscore".

This works fairly well with the bold markup, but for page titles it's obviously 
not a good thing.

Any ideas?

> 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.1
>         Environment: Red Hat Linux
>            Reporter: Stefan Bohn
>            Priority: Minor
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to