Return-Path: Delivered-To: apmail-lucene-pylucene-commits-archive@minotaur.apache.org Received: (qmail 14622 invoked from network); 14 Jan 2011 19:19:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jan 2011 19:19:40 -0000 Received: (qmail 81901 invoked by uid 500); 14 Jan 2011 19:19:41 -0000 Delivered-To: apmail-lucene-pylucene-commits-archive@lucene.apache.org Received: (qmail 81887 invoked by uid 500); 14 Jan 2011 19:19:40 -0000 Mailing-List: contact pylucene-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-commits@lucene.apache.org Received: (qmail 81879 invoked by uid 99); 14 Jan 2011 19:19:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 19:19:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 19:19:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EB21C23888E7; Fri, 14 Jan 2011 19:19:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1059131 - in /lucene/pylucene/branches/pylucene_3_0: CHANGES samples/mansearch.py Date: Fri, 14 Jan 2011 19:19:11 -0000 To: pylucene-commits@lucene.apache.org From: vajda@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110114191911.EB21C23888E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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()