lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Rowe <sar...@gwmail.syr.edu>
Subject Re: of^1 illegal?
Date Fri, 03 Oct 2003 21:46:23 GMT
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


Mime
View raw message