lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Ezekiel <>
Subject Question on queryparser code from Lucene
Date Sun, 13 Nov 2005 18:39:13 GMT
I got this nagging problem that I can't figure out in the source code of 

In the file org/apache/lucene/queryParser/,
there's a method called parse that returns a Query (see below):

   public Query parse(String query) throws ParseException {
     ReInit(new FastCharStream(new StringReader(query)));
     try {
       return Query(field);

I don't understand the return statement,
(i) how do we return without instantiation?
(ii) the Query class doesn't have a constructor that is Query(String)?

Thanks. Appreciate any pointers you can give.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message