esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r1043387 - /incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
Date Wed, 08 Dec 2010 12:47:27 GMT
Author: rhirsch
Date: Wed Dec  8 12:47:26 2010
New Revision: 1043387

URL: http://svn.apache.org/viewvc?rev=1043387&view=rev
Log:
[ESME-313] Move to Liftweb 2.2
Fixed scala problem with properties

Modified:
    incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/model/Message.scala

Modified: incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
URL: http://svn.apache.org/viewvc/incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/model/Message.scala?rev=1043387&r1=1043386&r2=1043387&view=diff
==============================================================================
--- incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
(original)
+++ incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
Wed Dec  8 12:47:26 2010
@@ -486,26 +486,26 @@ class Message extends LongKeyedMapper[Me
   def getAuthor:Long = author.is
 
   // termVector=YES means that we get the word frequencies for tag clouds
-  @SearchableProperty{val termVector=TermVector.YES, val analyzer="stemming"}
+  @SearchableProperty(termVector=TermVector.YES, analyzer="stemming")
   def getText:String = originalXml.text
   
   // Body without extra tags
   def getBody:String = body
 
-  @SearchableProperty{val termVector=TermVector.YES, val analyzer="default"}
+  @SearchableProperty(termVector=TermVector.YES, analyzer="default")
   def getTextWords:String = originalXml.text
 
-  @SearchableProperty{val format="yyyy-MM-dd mm:ss"}
+  @SearchableProperty(format="yyyy-MM-dd mm:ss")
   def getWhen = new java.util.Date(when.is)
 
-  @SearchableProperty{val termVector=TermVector.YES, val analyzer="default"}
+  @SearchableProperty(termVector=TermVector.YES, analyzer="default")
   def getTags:String = {
     // Create a string of space-separated tags, with the spaces in each tag converted to
underscores 
     val tagString: String = tags.map(x => x.split(" ").mkString("_")).mkString(" ").toLowerCase()
 
     tagString
   } 
 
-  @SearchableProperty{val termVector=TermVector.YES, val analyzer="pool"}
+  @SearchableProperty(termVector=TermVector.YES, analyzer="pool")
   def getPool = pool.is
 
   /**



Mime
View raw message