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

Mailing List Archive: Lucene: General

indexReader

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


isb at tid

Apr 15, 2009, 11:46 AM

Post #1 of 3 (1030 views)
Permalink
indexReader

Hello!
I'm a spanish Telecommunications student.I'm using Lucene to index some documents and I've goy a question.
the fact is that I index a document (only one). When I use Luke to confirm the information, I see the information is ok.
But when I open an IndexReader, the answer of numDocs is 0...is that possible?? I dont understand...if I open the index throught Luke I can see the informatio, but IndexReader sais there is no document there. MAy u help me??

Thanks a lot!

Irene


markrmiller at gmail

Apr 15, 2009, 5:10 PM

Post #2 of 3 (939 views)
Permalink
Re: indexReader [In reply to]

IRENE SANCHEZ BODEGA wrote:
> Hello!
> I'm a spanish Telecommunications student.I'm using Lucene to index some documents and I've goy a question.
> the fact is that I index a document (only one). When I use Luke to confirm the information, I see the information is ok.
> But when I open an IndexReader, the answer of numDocs is 0...is that possible?? I dont understand...if I open the index throught Luke I can see the informatio, but IndexReader sais there is no document there. MAy u help me??
>
> Thanks a lot!
>
> Irene
>
Hey Irene, I think you want the Lucene users list:
java-user [at] lucene

It has a wider readership, and your much more likely to find help with
Lucene there.

Good Luck!

--
- Mark

http://www.lucidimagination.com


ww.wang.cs at gmail

Apr 15, 2009, 6:54 PM

Post #3 of 3 (948 views)
Permalink
Re: indexReader [In reply to]

try reopening the index with your index reader
2009/4/16 IRENE SANCHEZ BODEGA <isb [at] tid>

> Hello!
> I'm a spanish Telecommunications student.I'm using Lucene to index some
> documents and I've goy a question.
> the fact is that I index a document (only one). When I use Luke to confirm
> the information, I see the information is ok.
> But when I open an IndexReader, the answer of numDocs is 0...is that
> possible?? I dont understand...if I open the index throught Luke I can see
> the informatio, but IndexReader sais there is no document there. MAy u help
> me??
>
> Thanks a lot!
>
> Irene
>



--
Weiwei Wang
ÍõΡΡ
Department of Computer Science
Gulou Campus of Nanjing University
Nanjing, P.R.China, 210093

Mobile: 86-13913310569
MSN: ww.wang.cs [at] gmail
Homepage: http://cs.nju.edu.cn/rl/weiweiwang

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.