lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1059131 - in /lucene/pylucene/branches/pylucene_3_0: CHANGES samples/mansearch.py
Date Fri, 14 Jan 2011 19:19:11 GMT
Author: vajda
Date: Fri Jan 14 19:19:11 2011
New Revision: 1059131

URL: http://svn.apache.org/viewvc?rev=1059131&view=rev
Log:
 - fixed mansearch.py sample to reflect API change (Jean Luc Truchtersheim)

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

Modified: lucene/pylucene/branches/pylucene_3_0/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_3_0/CHANGES?rev=1059131&r1=1059130&r2=1059131&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_3_0/CHANGES (original)
+++ lucene/pylucene/branches/pylucene_3_0/CHANGES Fri Jan 14 19:19:11 2011
@@ -1,3 +1,7 @@
+Version 3.0.3 ->
+----------------
+ - fixed mansearch.py sample to reflect API change (Jean Luc Truchtersheim)
+ - 
 
 Version 3.0.2 -> 3.0.3
 ----------------------

Modified: lucene/pylucene/branches/pylucene_3_0/samples/mansearch.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_3_0/samples/mansearch.py?rev=1059131&r1=1059130&r2=1059131&view=diff
==============================================================================
--- lucene/pylucene/branches/pylucene_3_0/samples/mansearch.py (original)
+++ lucene/pylucene/branches/pylucene_3_0/samples/mansearch.py Fri Jan 14 19:19:11 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