Mailing List Archive

Re: NullPointerException when searching with comma
Hi,

Otis Gospodnetic wrote:

> Could you please tell us which version of Lucene you are using,

i'm using rc3


> send a
> sample query,

hits = searcher.search(QueryParser.parse(query,
LuceneNewDocument.FIELD_DEFAULT, analyzer), dateFilter);

dateFilter is null, Analyzer is a SimpleAnalyzer.
query is something like 'gfdgfdgfd,dgfgfdg' . It seems that both parts
of the query must be words, wich are not indexed. Otherwise, i got no
exception.

> and an exception stack trace?
>

java.lang.NullPointerException
at org.apache.lucene.index.SegmentTermPositions.seek(Unknown
Source)
at org.apache.lucene.index.SegmentTermDocs.seek(Unknown Source)
at org.apache.lucene.index.IndexReader.termPositions(Unknown
Source)
at org.apache.lucene.search.PhraseQuery.scorer(Unknown Source)
at org.apache.lucene.search.Query.scorer(Unknown Source)
at org.apache.lucene.search.IndexSearcher.search(Unknown Source)

at org.apache.lucene.search.Hits.getMoreDocs(Unknown Source)
at org.apache.lucene.search.Hits.<init>(Unknown Source)
at org.apache.lucene.search.Searcher.search(Unknown Source)


regards,

Manfred