lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1059134 - in /lucene/pylucene/branches/branch_3x: CHANGES samples/mansearch.py
Date Fri, 14 Jan 2011 19:31:22 GMT
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()



Mime
View raw message