Re: MultiSegmentReader problems - current is null

2009-06-30 Thread liat oren
Ok, thanks a lot - I iwll try that tomorrow Best, Liat 2009/6/30 Simon Willnauer > Hi, > On Sun, Jun 28, 2009 at 2:39 PM, liat oren wrote: > > 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 f

Re: MultiSegmentReader problems - current is null

2009-06-30 Thread Simon Willnauer
Hi, On Sun, Jun 28, 2009 at 2:39 PM, liat oren wrote: > 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 m

Re: MultiSegmentReader problems - current is null

2009-06-30 Thread liat oren
Ohh, right. It resolves the problem I mentioned in the second email I sent. However, in the first mail I sent, the current of the multi-segment reader is null, which brings that problem. Thanks Liat 2009/6/30 Simon Willnauer > On Mon, Jun 29, 2009 at 9:55 AM, liat oren wrote: > > The full er

Re: MultiSegmentReader problems - current is null

2009-06-30 Thread Simon Willnauer
On Mon, Jun 29, 2009 at 9:55 AM, liat oren wrote: > The full error is: > Exception in thread "main" java.lang.NullPointerException >        at > Priorart.Lucene.Expert.index.MultiSegmentReader$MultiTermDocs.freq(Mu > ltiSegmentReader.java:709) > I looked at issue > LUCENE-781

Re: MultiSegmentReader problems - current is null

2009-06-30 Thread liat oren
lucene-2.4.1 Thanks, Liat 2009/6/29 Simon Willnauer > Quick question, which version of lucene do you use?! > > simon > > On Mon, Jun 29, 2009 at 9:55 AM, liat oren wrote: > > The full error is: > > Exception in thread "main" java.lang.NullPointerException > >at > > Priorart.Lucene.Exper

Re: MultiSegmentReader problems - current is null

2009-06-29 Thread Simon Willnauer
Quick question, which version of lucene do you use?! simon On Mon, Jun 29, 2009 at 9:55 AM, liat oren wrote: > The full error is: > Exception in thread "main" java.lang.NullPointerException >        at > Priorart.Lucene.Expert.index.MultiSegmentReader$MultiTermDocs.freq(Mu > ltiSegmentReader.java

Re: MultiSegmentReader problems - current is null

2009-06-29 Thread liat oren
The full error is: Exception in thread "main" java.lang.NullPointerException at Priorart.Lucene.Expert.index.MultiSegmentReader$MultiTermDocs.freq(Mu ltiSegmentReader.java:709) I looked at issue LUCENE-781- it might relates to this one?? Tho

MultiSegmentReader problems - current is null

2009-06-28 Thread liat oren
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