Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 67179 invoked from network); 20 Nov 2007 12:56:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2007 12:56:13 -0000 Received: (qmail 61235 invoked by uid 500); 20 Nov 2007 12:55:54 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 61206 invoked by uid 500); 20 Nov 2007 12:55:54 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 61195 invoked by uid 99); 20 Nov 2007 12:55:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 04:55:54 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [84.14.163.131] (HELO trinity.anyware-tech.com) (84.14.163.131) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 12:55:41 +0000 Received: from localhost (localhost [127.0.0.1]) by trinity.anyware-tech.com (Postfix) with ESMTP id D52A5400052 for ; Tue, 20 Nov 2007 13:55:33 +0100 (CET) Received: from trinity.anyware-tech.com ([127.0.0.1]) by localhost (trinity.anyware-tech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31876-06 for ; Tue, 20 Nov 2007 13:55:28 +0100 (CET) Received: from almeda.anyware (almeda.anyware [10.0.3.16]) by trinity.anyware-tech.com (Postfix) with ESMTP id DE6E0400048 for ; Tue, 20 Nov 2007 13:55:27 +0100 (CET) From: Nicolas =?iso-8859-1?q?Lalev=E9e?= Organization: Anyware Technologies To: java-user@lucene.apache.org Subject: Custom query parser Date: Tue, 20 Nov 2007 13:55:28 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711201355.28973.nicolas.lalevee@anyware-tech.com> X-Virus-Scanned: Debian amavisd-new at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am willing to have a query parser which is fault tolerant. I have search over the archive, and I have found this : http://www.nabble.com/Error-tolerant-query-parsing-tf108987.html#a300382 I also want my parser to have very simple feature : phrase search and field search. So I need to develop a simple query parser myself : not that hard, a simple state machine will be the trick. But here I loose an important feature of the Lucene query parser : creating queries regarding an analyzer. In fact I loose that very usefull function : http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/org/apache/lucene/queryParser/QueryParser.html#getFieldQuery(java.lang.String, %20java.lang.String) So is there any proper way to create a custom query parser without duplicating the code ? cheers, Nicolas --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org