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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
