You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by IRENE SANCHEZ BODEGA <is...@tid.es> on 2009/04/15 20:46:59 UTC
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
Re: indexReader
Posted by Mark Miller <ma...@gmail.com>.
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@lucene.apache.org
It has a wider readership, and your much more likely to find help with
Lucene there.
Good Luck!
--
- Mark
http://www.lucidimagination.com
Re: indexReader
Posted by 王巍巍 <ww...@gmail.com>.
try reopening the index with your index reader
2009/4/16 IRENE SANCHEZ BODEGA <is...@tid.es>
> 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@gmail.com
Homepage: http://cs.nju.edu.cn/rl/weiweiwang