gt;> >>
>> >> Directory fsDir = FSDirectory.getDirectory(indexDir);
>> >> IndexSearcher is = new IndexSearcher(fsDir);
>> >>
>> >> Query query = new QueryParser("body", new
>> >> StandardAnalyzer()).pars
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
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
; 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/
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