Question: Also I want to know how to add meta data while indexing so that i can boost some parameters

Answer: 
There are several frameworks for extracting text suitable for Lucene indexing from rich text files (pdf, ppt etc.)

* One of them is [Apache Tika](http://lucene.apache.org/tika/), a sub-project of Lucene.
* [Apache POI](http://poi.apache.org/) is a more general document handling project inside Apache.
* There are also some commercial alternatives.
see <https://github.com/WolfgangFahl/pdfindexer>
for a java solution that uses PDFBox and Apache Lucene to split the PDF files page by page to text,
index these text-pages and create a resulting html index file that links to the pages in the pdf sources by using a corresponding open parameter.