lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1465882 - /lucene/pylucene/trunk/samples/FacetExample.py
Date Tue, 09 Apr 2013 05:09:09 GMT
Author: vajda
Date: Tue Apr  9 05:09:08 2013
New Revision: 1465882

URL: http://svn.apache.org/r1465882
Log:
integrated fix by Thomas Koch

Modified:
    lucene/pylucene/trunk/samples/FacetExample.py

Modified: lucene/pylucene/trunk/samples/FacetExample.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/FacetExample.py?rev=1465882&r1=1465881&r2=1465882&view=diff
==============================================================================
--- lucene/pylucene/trunk/samples/FacetExample.py (original)
+++ lucene/pylucene/trunk/samples/FacetExample.py Tue Apr  9 05:09:08 2013
@@ -97,8 +97,8 @@ class SimpleIndexer(object):
         """
         # create and open an index writer
         from org.apache.lucene.util import Version
-        config = IndexWriterConfig(Version.LUCENE_41,
-                                   WhitespaceAnalyzer(Version.LUCENE_41))
+        config = IndexWriterConfig(Version.LUCENE_42,
+                                   WhitespaceAnalyzer(Version.LUCENE_42))
         config.setOpenMode(IndexWriterConfig.OpenMode.CREATE)
         iw = IndexWriter(indexDir, config)
         # create and open a taxonomy writer
@@ -186,8 +186,7 @@ class SimpleSearcher(object):
         # collect matching documents into a collector
         topDocsCollector = TopScoreDocCollector.create(10, True)
         if not indexingParams:
-            # This is a singleton equivalent to new FacetIndexingParams()
-            indexingParams = FacetIndexingParams.ALL_PARENTS
+            indexingParams = FacetIndexingParams.DEFAULT
 
         # Faceted search parameters indicate which facets are we interested in
         facetRequests = [facetRequest,]
@@ -219,8 +218,7 @@ class SimpleSearcher(object):
         # base query the user is interested in
         baseQuery = TermQuery(Term(TEXT, "white"))
         if not indexingParams:
-            # This is a singleton equivalent to new FacetIndexingParams()
-            indexingParams = FacetIndexingParams.ALL_PARENTS
+            indexingParams = FacetIndexingParams.DEFAULT
 
         # facet of interest
         facetRequest = CountFacetRequest(CategoryPath(["root","a"]), 10)



Mime
View raw message