Done:
https://issues.apache.org/jira/browse/ROL-1846

--- On Tue, 11/17/09, Dave <[email protected]> wrote:

From: Dave <[email protected]>
Subject: Re: Search does not return result when handle contains underscore (_)
To: [email protected]
Date: Tuesday, November 17, 2009, 6:39 AM

Hi Jery,

Thanks for the bug reports and suggested fixes!

Please file these as bugs and include a your patch there.
   https://issues.apache.org/roller

Thanks,
- Dave


On Tue, Nov 17, 2009 at 8:22 AM, Jery Wang <[email protected]> wrote:
> I found a bug where when website handle contains underscore '_', the term 
> only takes the first phrase before underscore
>
> Anyone can patch the trunk?
>
> The patch:
>
> --- 
> roller_trunk_org/apps/weblogger/web/src/java/org/apache/roller/weblogger/business/search/operations/SearchOperation.java   
>  2009-11-08 00:18:11.663437673 +1100
> +++ 
> roller_trunk/apps/weblogger/web/src/java/org/apache/roller/weblogger/business/search/operations/SearchOperation.java       
>  2009-11-18 00:01:09.968130558 +1100
> @@ -110,8 +110,7 @@
>                  SEARCH_FIELDS, SEARCH_FLAGS,
>                  new StandardAnalyzer(Version.LUCENE_CURRENT));
>
> -            Term tUsername =
> -                IndexUtil.getTerm(FieldConstants.WEBSITE_HANDLE, 
> websiteHandle);
> +            Term tUsername = new Term(FieldConstants.WEBSITE_HANDLE, 
> websiteHandle);
>
>              if (tUsername != null) {
>                  BooleanQuery bQuery = new BooleanQuery();
>
>
>
>
>



      

Reply via email to