You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2011/01/14 20:31:22 UTC

svn commit: r1059134 - in /lucene/pylucene/branches/branch_3x: CHANGES samples/mansearch.py

Author: vajda
Date: Fri Jan 14 19:31:22 2011
New Revision: 1059134

URL: http://svn.apache.org/viewvc?rev=1059134&view=rev
Log:
 - fixed mansearch.py sample to reflect API changes

Modified:
    lucene/pylucene/branches/branch_3x/CHANGES
    lucene/pylucene/branches/branch_3x/samples/mansearch.py

Modified: lucene/pylucene/branches/branch_3x/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/CHANGES?rev=1059134&r1=1059133&r2=1059134&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/CHANGES (original)
+++ lucene/pylucene/branches/branch_3x/CHANGES Fri Jan 14 19:31:22 2011
@@ -10,6 +10,7 @@ Version 3.0.0 ->
  - fixed "Lucene in Action" samples leftover on old API
  - improved support for adding optional contrib modules
  - added --package java.util.regex to wrap constructors on PatternAnalyzer
+ - fixed mansearch.py sample to reflect API changes
  - 
 
 Version 2.9.0 -> 3.0.0

Modified: lucene/pylucene/branches/branch_3x/samples/mansearch.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/samples/mansearch.py?rev=1059134&r1=1059133&r2=1059134&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/samples/mansearch.py (original)
+++ lucene/pylucene/branches/branch_3x/samples/mansearch.py Fri Jan 14 19:31:22 2011
@@ -65,7 +65,8 @@ template = CustomTemplate(format)
 fsDir = SimpleFSDirectory(File(indexDir))
 searcher = IndexSearcher(fsDir, True)
 
-parser = QueryParser("keywords", StandardAnalyzer(Version.LUCENE_CURRENT))
+analyzer = StandardAnalyzer(Version.LUCENE_CURRENT)
+parser = QueryParser(Version.LUCENE_CURRENT, "keywords", analyzer)
 parser.setDefaultOperator(QueryParser.Operator.AND)
 query = parser.parse(' '.join(args))
 start = datetime.now()