lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Esmond Pitt" <>
Subject Inconsistent treatment of field-names between index-time and query-time
Date Thu, 12 Feb 2004 04:03:01 GMT
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;
    fieldToken=<TERM> <COLON> { 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:
For additional commands, e-mail:

View raw message