Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 56817 invoked from network); 18 May 2006 12:08:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2006 12:08:48 -0000 Received: (qmail 78321 invoked by uid 500); 18 May 2006 12:08:41 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 78300 invoked by uid 500); 18 May 2006 12:08:41 -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 78289 invoked by uid 99); 18 May 2006 12:08:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2006 05:08:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [149.77.160.1] (HELO master.hyd.deshaw.com) (149.77.160.1) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2006 05:08:40 -0700 Received: from mshydpub1.hyd.deshaw.com (mshydpub1.hyd.deshaw.com [149.77.160.67]) by master.hyd.deshaw.com (8.12.7/8.12.7/2.0.kim.desco.357) with ESMTP id k4IC8FR8019981 for ; Thu, 18 May 2006 17:38:15 +0530 (IST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Subject: How to do analysis when creating a query programmatically? Date: Thu, 18 May 2006 17:38:15 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to do analysis when creating a query programmatically? Thread-Index: AcZ6c74uHwwD6L8VQ4WRNo59YD1uUA== From: "Satuluri, Venu_Madhav" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I have recently shifted to creating queries programmatically rather than using the QueryParser as this gave me more flexibility. I am facing a new problem, though: when indexing my fields are being analyzed (on a per-field basis: most are being stemmed etc, some are keywords returned as it is), but the query doesn't get analyzed as I construct it myself. This means that many legitimate documents don't come up as results.=20 Is there any way to run my Query object through my analyzer? Or is there another solution? Thanks in advance, Venu --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org