lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manfred Schäfer <mschae...@bouncy.com>
Subject Re: NullPointerException when searching with comma
Date Tue, 05 Feb 2002 17:38:21 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message