incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r956495 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
Date Mon, 21 Jun 2010 08:50:20 GMT
Author: rhirsch
Date: Mon Jun 21 08:50:20 2010
New Revision: 956495

URL: http://svn.apache.org/viewvc?rev=956495&view=rev
Log:
[ESME-163] Search in the web interface is case sensitive

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala?rev=956495&r1=956494&r2=956495&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala Mon Jun
21 08:50:20 2010
@@ -160,7 +160,7 @@ object Message extends Message with Long
           for (user <- following) followingQuery.addShould(queryBuilder.term("author",
user.id))
 
           val query: CompassQuery = queryBuilder.bool()
-          .addMust( queryBuilder.term("text", stemWord(searchTerm)) )
+          .addMust( queryBuilder.term("text", stemWord(searchTerm.toLowerCase() )) )
           .addMust( followingQuery.toQuery )
           .toQuery()
 



Mime
View raw message