Re: search trough single pdf document - return page number

2009-10-16 Thread IvanDrago
. > > Erick > > On Fri, Oct 16, 2009 at 8:01 AM, IvanDrago wrote: > >> >> Hey! I did it! Eric and Robert, you helped a lot. Thanks! >> >> I didn't use LucenePDFDocument. I created a new document for every page >> in >> a >> PDF

Re: search trough single pdf document - return page number

2009-10-16 Thread IvanDrago
eason to complexify the > situation.. > > FWIW > Erick > > On Fri, Oct 16, 2009 at 8:01 AM, IvanDrago wrote: > >> >> Hey! I did it! Eric and Robert, you helped a lot. Thanks! >> >> I didn't use LucenePDFDocument. I created a new documen

Re: search trough single pdf document - return page number

2009-10-16 Thread IvanDrago
ed); > } > doc.add("metadata", ); > iw.addDocument(doc); > > Now, when you search you can get the offsets of the matching term, > then look in your metadata field for the page number. > > Perhaps you could use the LucenePDFDocument in conjunction with this > som

Re: search trough single pdf document - return page number

2009-10-15 Thread IvanDrago
f this is off base, perhaps you could provide more details... > > Erick > > On Thu, Oct 15, 2009 at 5:06 AM, IvanDrago wrote: > >> >> Hi, >> >> I have to search a single pdf document for requested string and if that >> string is found, I need to return

search trough single pdf document - return page number

2009-10-15 Thread IvanDrago
Hi, I have to search a single pdf document for requested string and if that string is found, I need to return a page number where that string was found. Requested string can be anything in a pdf document. It is a big document(abount 5000 pages) so I'm asking if that is possible with lucene. I'm