lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r984146 - /lucene/pylucene/branches/branch_3x/samples/LuceneInAction/lia/analysis/queryparser/AnalysisParalysisTest.py
Date Tue, 10 Aug 2010 17:47:57 GMT
Author: vajda
Date: Tue Aug 10 17:47:57 2010
New Revision: 984146

URL: http://svn.apache.org/viewvc?rev=984146&view=rev
Log:
fixed one more QueryParser sample test failure

Modified:
    lucene/pylucene/branches/branch_3x/samples/LuceneInAction/lia/analysis/queryparser/AnalysisParalysisTest.py

Modified: lucene/pylucene/branches/branch_3x/samples/LuceneInAction/lia/analysis/queryparser/AnalysisParalysisTest.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/samples/LuceneInAction/lia/analysis/queryparser/AnalysisParalysisTest.py?rev=984146&r1=984145&r2=984146&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/samples/LuceneInAction/lia/analysis/queryparser/AnalysisParalysisTest.py
(original)
+++ lucene/pylucene/branches/branch_3x/samples/LuceneInAction/lia/analysis/queryparser/AnalysisParalysisTest.py
Tue Aug 10 17:47:57 2010
@@ -26,8 +26,9 @@ class AnalysisParalysisTest(LiaTestCase)
         analyzer = StandardAnalyzer(Version.LUCENE_CURRENT)
         queryString = "category:/philosophy/eastern"
 
-        query = QueryParser(Version.LUCENE_CURRENT,
-                            "contents", analyzer).parse(queryString)
+        parser = QueryParser(Version.LUCENE_CURRENT, "contents", analyzer)
+        parser.setAutoGeneratePhraseQueries(True)
+        query = parser.parse(queryString)
 
         self.assertEqual("category:\"philosophy eastern\"",
                          query.toString("contents"), "path got split, yikes!")



Mime
View raw message