What is LucenePDFDocument ?
Is it a sample class ?

However  LucenePDFDocument.getDocument(myPdfFile) should create a document 
containing an indexed field.
You can achieve  that for instance by using Field.Text().

                        writer = new IndexWriter("c:\\tmp\\index",ana,true);
                        Document doc = new Document();
                        doc.add(Field.Text("text","toto li toto"));
                        writer.addDocument(doc);
                        writer.close();

please refer to the static methods of the Field class.


-----Message d'origine-----
De : chetan minajagi [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 20 janvier 2005 10:15
À : Lucene Users List
Objet : RE: help in indexing


Hi Karthik/Cocula,

Luke didn't work but Limo helped.I seem to get results when i use Limo for my 
text/xls files.
Now the problem with pdf search
The problem that i see is the "summary" field as seen through LIMO is not 
indexed and hence no hits.
I'm using the default document got by 
 LucenePDFDocument.getDocument(myPdfFile);
So how do i ensure that a few of the fields in this which are not indexed are 
set to indexed.
As far as I can see I can only probe whether a field is indexed or not by using 
Field.isIndexed() but is there a method by which i can set to indexed.
can someone provide any help or pointers in this regard?
 
Thanks & Regards,
Chetan

Karthik N S <[EMAIL PROTECTED]> wrote:
Hi

Probably u need to use the Luke S/w to peek insid tu'r Indexer,Use it then
come back for more help


Karthik


-----Original Message-----
From: chetan minajagi [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 20, 2005 12:05 PM
To: lucene-user@jakarta.apache.org
Subject: help in indexing


Hi ,

It might seem elementary to most of you.
I am trying to build a search tool for internal use using lucene.
I have used the following
for
.pdf --> PDFBOx
.html --> demo file of lucene(HTMLDocument)
.xls --> poi

The indexing seems to work without throwing up any errors.
But,when i try to search i end up getting with zero hits always.
I have tried to use the same string that i see (System.out.print(Document))
but in vain.
Can somebody let me know where and what could be wrong.
Regards,
Chetan


---------------------------------
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


                
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - You care about security. So do we.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to