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 Manfred Schäfer <ms...@bouncy.com> on 2002/02/05 18:38:21 UTC

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