[jboss-cvs] jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam ...
Gavin King
gavin.king at jboss.com
Sun Jun 24 02:44:19 EDT 2007
User: gavin
Date: 07/06/24 02:44:19
Modified: examples/dvdstore/src/com/jboss/dvd/seam
FullTextSearchAction.java
Log:
update
Revision Changes Path
1.2 +3 -2 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FullTextSearchAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- FullTextSearchAction.java 23 Jun 2007 22:04:52 -0000 1.1
+++ FullTextSearchAction.java 24 Jun 2007 06:44:19 -0000 1.2
@@ -1,4 +1,4 @@
-//$Id: FullTextSearchAction.java,v 1.1 2007/06/23 22:04:52 gavin Exp $
+//$Id: FullTextSearchAction.java,v 1.2 2007/06/24 06:44:19 gavin Exp $
package com.jboss.dvd.seam;
import java.io.Serializable;
@@ -174,7 +174,8 @@
boostPerField.put( "title", 4f );
boostPerField.put( "description", 2f );
boostPerField.put( "actors.name", 2f );
- String[] productFields = {"title", "description", "actors.name"};
+ boostPerField.put( "categories.name", 0.5f );
+ String[] productFields = {"title", "description", "actors.name", "categories.name"};
QueryParser parser = new MultiFieldQueryParser(productFields, new StandardAnalyzer(), boostPerField);
parser.setAllowLeadingWildcard(true);
org.apache.lucene.search.Query luceneQuery;
More information about the jboss-cvs-commits
mailing list