jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r538486 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SimilarityQuery.java
Date Wed, 16 May 2007 08:50:04 GMT
Author: mreutegg
Date: Wed May 16 01:50:02 2007
New Revision: 538486

URL: http://svn.apache.org/viewvc?view=rev&rev=538486
Log:
JCR-906: Introduce similarity function
- increase minimum term length to 4

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SimilarityQuery.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SimilarityQuery.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SimilarityQuery.java?view=diff&rev=538486&r1=538485&r2=538486
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SimilarityQuery.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SimilarityQuery.java
Wed May 16 01:50:02 2007
@@ -53,7 +53,7 @@
         MoreLikeThis more = new MoreLikeThis(reader);
         more.setAnalyzer(analyzer);
         more.setFieldNames(new String[]{FieldNames.FULLTEXT});
-        more.setMinWordLen(3);
+        more.setMinWordLen(4);
         Query similarityQuery = null;
         TermDocs td = reader.termDocs(new Term(FieldNames.UUID, uuid));
         try {



Mime
View raw message