lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ype Kingma <ykin...@xs4all.nl>
Subject Re: boosting & StandardAnalyzer, stop words
Date Tue, 09 Dec 2003 16:58:28 GMT
Stefan,

I didn't provide the patch, I just remembered the code from
a recent reading.

I took another look whether there are more such cases
in the Term() method, but I couldn't find anything clear
in the .jj file. The generated .java file didn't help much either.

Could you provide a line number with the exception?
There are some attribute references that might cause
this.
Or perhaps someone else can give a better hint.

Kind regards,
Ype



On Tuesday 09 December 2003 12:38, Stefan Groschupf wrote:
> Ype,
>
> >It's a bug, and there is a fix for this in the latest CVS
> >near the end of the QueryParser.jj file:
> >
> >      // avoid boosting null queries, such as those caused by stop words
> >      if (q != null) {
> >        q.setBoost(f);
> >      }
>
> I had checked out the latest sources from public cvs. The posted code
> lines abouve are on the QueryParser.jj but this does not fix the problem.
> ;/ What could it be?
>
> *java.lang.NullPointerException
>     at org.apache.lucene.queryParser.QueryParser.Term(Unknown Source)
>     at org.apache.lucene.queryParser.QueryParser.Clause(Unknown Source)
>     at org.apache.lucene.queryParser.QueryParser.Query(Unknown Source)
>     at org.apache.lucene.queryParser.QueryParser.Clause(Unknown Source)
>     at org.apache.lucene.queryParser.QueryParser.Query(Unknown Source)
>     at org.apache.lucene.queryParser.QueryParser.parse(Unknown Source)
>     at org.apache.lucene.queryParser.QueryParser.parse(Unknown Source)
>
> *
> Stefan
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message