Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User
MultiSegmentReader problems - current is null
 

Index | Next | Previous | View Flat


oren.liat at gmail

Jun 28, 2009, 5:39 AM


Views: 518
Permalink
MultiSegmentReader problems - current is null

Hi,

I have an index that is a multi-segment index (how come it is created this
way?)

When I try to get the freq of a term at the following way:
TermDocs tDocs = this.indexReader.termDocs(term);
tf = tDocs.freq();
the greq method :
public int freq()
{
return current.freq();
}
is in MultiSegmentReader.

The current is null, so I get an exception.

Should I initialize current?
How can I avoid this problem?
How can I avoid having a multi-segment index?

Many thanks,
Liat

Subject User Time
MultiSegmentReader problems - current is null oren.liat at gmail Jun 28, 2009, 5:39 AM
    Re: MultiSegmentReader problems - current is null oren.liat at gmail Jun 29, 2009, 12:55 AM
    Re: MultiSegmentReader problems - current is null simon.willnauer at googlemail Jun 29, 2009, 3:11 AM
    Re: MultiSegmentReader problems - current is null oren.liat at gmail Jun 30, 2009, 5:45 AM
    Re: MultiSegmentReader problems - current is null simon.willnauer at googlemail Jun 30, 2009, 5:52 AM
    Re: MultiSegmentReader problems - current is null oren.liat at gmail Jun 30, 2009, 6:00 AM
    Re: MultiSegmentReader problems - current is null simon.willnauer at googlemail Jun 30, 2009, 6:10 AM
    Re: MultiSegmentReader problems - current is null oren.liat at gmail Jun 30, 2009, 1:27 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.