Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 54390 invoked from network); 16 Nov 2006 20:22:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 20:22:49 -0000 Received: (qmail 35659 invoked by uid 500); 16 Nov 2006 20:22:52 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 35622 invoked by uid 500); 16 Nov 2006 20:22:52 -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 35611 invoked by uid 99); 16 Nov 2006 20:22:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 12:22:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 12:22:39 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 8103F5B779; Thu, 16 Nov 2006 12:22:19 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 7D1887F403 for ; Thu, 16 Nov 2006 12:22:19 -0800 (PST) Date: Thu, 16 Nov 2006 12:22:19 -0800 (PST) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Urgent : Specific string query search In-Reply-To: <359a92830611160949w55d6d398y79f0dba75ebe78ad@mail.gmail.com> Message-ID: References: <359a92830611160949w55d6d398y79f0dba75ebe78ad@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : As far as I know, WhiteSpaceAnalyzer does support the field:text format. Try More specificaly, the bit of syntax field:value ...or more generally field:"some longer value" is parsed by QueryParser regardless of what Analyzer you use. QP is what extracts the field name and the colon, and then gives the Analyzer the string: some longer value pay carefull attention that when you say "XXXX dosn't work with WhitespaceAnalyzer" that you are using WhitespaceAnalyzer both when you index your text and when you query (ie: set it on the IndexWriter, and on the QueryParser) otherwise there will be a large disconnect between the terms in your index, and the TermQueries the QueryPArser gives you... http://wiki.apache.org/jakarta-lucene/AnalysisParalysis -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org