Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 10129 invoked from network); 12 Feb 2004 04:03:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Feb 2004 04:03:24 -0000 Received: (qmail 90878 invoked by uid 500); 12 Feb 2004 04:02:54 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 90832 invoked by uid 500); 12 Feb 2004 04:02:54 -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 90735 invoked from network); 12 Feb 2004 04:02:53 -0000 Received: from unknown (HELO mail.motile.net) (203.32.115.2) by daedalus.apache.org with SMTP; 12 Feb 2004 04:02:53 -0000 Received: (qmail 27796 invoked by uid 1008); 12 Feb 2004 04:02:42 -0000 Received: from unknown (HELO iapetus) (esmond.pitt@motile.net@203.32.113.2) by 0 with SMTP; 12 Feb 2004 04:02:42 -0000 Message-ID: <005901c3f11d$1bb04bb0$34fafc0a@iapetus> From: "Esmond Pitt" To: "Lucene Users List" Subject: Inconsistent treatment of field-names between index-time and query-time Date: Thu, 12 Feb 2004 15:03:01 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have a field Author: and I'm using the StandardAnalyzer. When documents with this field are added to the index, the field name 'Author' is case-folded by the analyzer to 'author', and this is how it appears in the index. Queries using 'Author' therefore do not work, because the field name is not processed by the analyzer. This seems to be due to line 587 of QueryParser.jj (as at 1.3-final), which is part of the following: Query Clause(String field) : { Query q; Token fieldToken=null, boost=null; } { [ LOOKAHEAD(2) fieldToken= { field = fieldToken.image; } ] I believe that 'field = fieldToken.image' needs to be processed by the Analyzer to solve this problem. Esmond Pitt --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org