Re: getting problem while indexing pdf files with pdfbox

2007-07-17 Thread neetika
gt;> >> >> >> Directory fsDir = FSDirectory.getDirectory(indexDir); >> >> IndexSearcher is = new IndexSearcher(fsDir); >> >> >> >> Query query = new QueryParser("body", new >> >> StandardAnalyzer()).pars

Re: getting problem while indexing pdf files with pdfbox

2007-07-17 Thread Erick Erickson
fied path.. >> >> segments.gen >> write.lock >> segments_4 >> >> >> but when I run the search class it gives the result as: >> >> Found 0 documents that matched query 'RA0083': >> >> I am also attaching the corresponding pdf file for

Re: getting problem while indexing pdf files with pdfbox

2007-07-17 Thread neetika
n >> write.lock >> segments_4 >> >> >> but when I run the search class it gives the result as: >> >> Found 0 documents that matched query 'RA0083': >> >> I am also attaching the corresponding pdf file for reference. >> It seems as the

Re: getting problem while indexing pdf files with pdfbox

2007-07-17 Thread Erick Erickson
; documents that matched query '" + q + "':"); for (int i = 0; i < hits.length(); i++) { Document doc = hits.doc(i); } } When I run the above code...I get folowing output as a result of running indexer class Documenthttp://www.nabble.com/

getting problem while indexing pdf files with pdfbox

2007-07-17 Thread neetika
t;Found " + hits.length() + " documents that matched query '" + q + "':"); for (int i = 0; i < hits.length(); i++) { Document doc = hits.doc(i); } } When I run the above code...I get folowing output as a result of running indexer c