On Saturday 03 April 2004 11:53, Erik Hatcher wrote: > I didn't catch in your first message that it was throwing a > ParseException.... this is odd. Are you certain that "date:[20030101 > TO 20030202]" is the complete string your passing to QueryParser? Did
Yes. > you subclass QueryParser? If so, what is that code? (what is the No. I use a MultiFieldQueryParser: Query qQuery = MultiFieldQueryParser.parse(query, new String[] { "id", "title", "summary", "contents", "date" }, GERMAN_ANALYZER); Hits hits = searcher.search(qQuery); > complete stack trace?) [java] 12:38:03,109 ERROR [view.SearchAction] org.apache.lucene.queryParser.ParseException: Encountered "20030404" at line 1, column 18. [java] Was expecting: [java] "]" ... [java] org.apache.lucene.queryParser.ParseException: Encountered "20030404" at line 1, column 18. [java] Was expecting: [java] "]" ... [java] at org.apache.lucene.queryParser.QueryParser.generateParseException(QueryParser.java:994) [java] at org.apache.lucene.queryParser.QueryParser.jj_consume_token(QueryParser.java:874) [java] at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:657) [java] at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:521) [java] at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:464) [java] at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:108) [java] at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:87) [java] at org.apache.lucene.queryParser.MultiFieldQueryParser.parse(MultiFieldQueryParser.java:115) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]