You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Dan Quaroni <dq...@OPENRATINGS.com> on 2003/10/03 23:33:39 UTC
of^1 illegal?
I'm running lucene 1.2, and when I do the following query I get the
following exception:
name:of^1
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
SearchProduce_ModelTrainData.performQuery(SearchProduce_ModelTrainDat
a.java:610)
at
SearchProduce_ModelTrainData.main(SearchProduce_ModelTrainData.java:3
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: of^1 illegal?
Posted by Steve Rowe <sa...@gwmail.syr.edu>.
Dan,
Does your Analyzer use a StopFilter? If you're using the
StandardAnalyzer, for example, "of" is on its list of words to filter
(via a StopFilter instance). If the single term in a query is
filtered out, you're "doing" an empty query, which could cause trouble
not unlike that which you report.
Hope it helps,
Steve
Dan Quaroni wrote:
> I'm running lucene 1.2, and when I do the following query I get the
> following exception:
>
> name:of^1
>
> 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
> SearchProduce_ModelTrainData.performQuery(SearchProduce_ModelTrainDat
> a.java:610)
> at
> SearchProduce_ModelTrainData.main(SearchProduce_ModelTrainData.java:3
>
> ---------------------------------------------------------------------
> 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
Re: of^1 illegal?
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Friday, October 3, 2003, at 05:33 PM, Dan Quaroni wrote:
> I'm running lucene 1.2, and when I do the following query I get the
> following exception:
>
> name:of^1
Works fine with the latest CVS version, though.
What are you searching for? Are you trying to indicate a boost factor
of 1 (which is the default anyway)?
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org