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(); > > > > >
