390 likes | 514 Vues
This guide explores the powerful capabilities of the Lucene search engine, focusing on full-text search features, document indexing, and text extraction techniques. It provides in-depth steps for indexing and searching documents, including PDF, Microsoft files, and more. Learn to optimize performance while indexing and make the most out of your search queries. Discover resources like the Luke Lucene Index Toolbox for testing and troubleshooting. This is an essential resource for developers looking to implement efficient search functionalities in their applications.
E N D
Lucene Full Text Search Cross Platform Lucene Document Inverted Index
Implementation Derek
Text Extraction • Lucene not a complete application. • PDF files text extraction • Microsoft files text extraction
Luke - Lucene Index Toolbox • Client application to link directly into your index. • Java-webstart app • http://www.getopt.org/luke/ • Handy for testing searches and performance.
Some problems encountered • Max clause count exception: • Take care automatically adding wildcards!! • Performance: • Do the work while indexing, not while searching. • Pagination: Get one page at a time from the Hits. • Our security model • Stored collection of allowed containers in UserSession. • Visibility of indexing job. • Added logging “Indexing document 426 of 204,532”
http://lucene.apache.org/ http://www.ibm.com/developerworks/web/library/wa-lucene2/ http://www.ibm.com/developerworks/library/wa-lucene/ An open source document management system in php with a java lucene search engine Resources (general) Handy ajax autocomplete component.
Resources (text extraction) http://pdfbox.org Text extractor for pdf files JXL http://jexcelapi.sourceforge.net/ Text extractor for excel files. Text extractor for word documents. API to access Microsoft format files. (xls/doc/ppt). I would recommend this one over jxl or text-mining above.
Summary Lucene querying is fast (take care what you do with the results) Indexing is slow (Make indexing job visible) Use Luke Add lots to the index (Do the work while indexing)