[hibernate-commits] Hibernate SVN: r12846 - trunk/HibernateExt/search/src/java/org/hibernate/search/annotations.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Sun Jul 29 11:12:47 EDT 2007


Author: epbernard
Date: 2007-07-29 11:12:47 -0400 (Sun, 29 Jul 2007)
New Revision: 12846

Modified:
   trunk/HibernateExt/search/src/java/org/hibernate/search/annotations/Field.java
Log:
HSEARCH-102 default @Field.index to TOKENIZED

Modified: trunk/HibernateExt/search/src/java/org/hibernate/search/annotations/Field.java
===================================================================
--- trunk/HibernateExt/search/src/java/org/hibernate/search/annotations/Field.java	2007-07-29 15:10:49 UTC (rev 12845)
+++ trunk/HibernateExt/search/src/java/org/hibernate/search/annotations/Field.java	2007-07-29 15:12:47 UTC (rev 12846)
@@ -27,13 +27,15 @@
 
 	/**
 	 * Should the value be stored in the document
+	 * defaults to no.
 	 */
 	Store store() default Store.NO;
 
 	/**
 	 * Defines how the Field should be indexed
+	 * defaults to tokenized
 	 */
-	Index index();
+	Index index() default Index.TOKENIZED;
 
 	/**
 	 * Define an analyzer for the field, default to




More information about the hibernate-commits mailing list