Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 78505 invoked from network); 30 Nov 2004 21:40:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Nov 2004 21:40:47 -0000 Received: (qmail 62707 invoked by uid 500); 30 Nov 2004 21:40:08 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 62660 invoked by uid 500); 30 Nov 2004 21:40:07 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 62609 invoked by uid 99); 30 Nov 2004 21:40:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO tango.casebank.com) (209.167.138.140) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 30 Nov 2004 13:40:06 -0800 Received: from aatamer ([172.17.232.22]) by tango.casebank.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 30 Nov 2004 16:40:33 -0500 From: "Allen Atamer" To: Subject: literal search in quotes on non-tokenized field Date: Tue, 30 Nov 2004 16:42:44 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0642_01C4D6FB.9DF2B1C0" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcTXJYUuMotJ/kZGSOmA8Mcdpe/boA== Message-ID: X-OriginalArrivalTime: 30 Nov 2004 21:40:34.0015 (UTC) FILETIME=[38D03EF0:01C4D725] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0642_01C4D6FB.9DF2B1C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Here is a problem I am experiencing with Lucene searches on non-tokenized fields: A search in quotes on a field named Build with the query "\"orig\"" does not work but the query "origi" yields 62 hits I have run indexing on the field with the following method doc.add(Field.Keyword(data.getColumnName(j), fieldValue.toString().toLowerCase())); so even though the original data has "ORIGI" in the "Build" field, lowercase is not the problem Here's a log of the parsed query before going to the searcher: Parsed query: (Build:"origi") for the first search Parsed query: (Build:origi) for the second search Right now we're not using a query parser / analyzer system to build the query. We're building the query up. The query mentioned above is a TermQuery object Thanks ------=_NextPart_000_0642_01C4D6FB.9DF2B1C0--