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 Mon, 08 Dec 2003 20:16:10 GMT
Stefan,

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);
      }

Kind regards,
Ype


On Monday 08 December 2003 20:20, Stefan Groschupf wrote:
> Hi,
>
> I notice something really strange.
>
> I just tried the "document to query" thing with term frequencies and
> term bosting based on the term frequence.
> The code itself take may be 3 minutes, but i spend around 2 hours to
> search a nullpointer exception i got in this line.
>
>     query = QueryParser.parse(searchStringBuffer.toString(),
> IFieldNames.INSTANCE_VALUE, new StandardAnalyser());
>
> I figure out this happen until my search string contains. "will"^13
> I replace the StandardAnalyzer with a own Implementation of the Analyzer
> that just do nothing and now it works.
> Look like the StandardAnalyser has problem until stop word removal, when
> term bosting is used.
>
> Is that a bug or just a mistake by myself?
>
> Stefan


---------------------------------------------------------------------
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