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