Skip to content

Multi-type file handler to obtain Apache Lucene Documents from different source files

License

Notifications You must be signed in to change notification settings

luislorenzom/lubel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

What is lubel?

Lubel is a multi-type file handler to obtain Apache Lucene Documents from different source files, trying to abstract the developer from the task of documents parsing.

How to use it?

First of all you need to include lubel in your project (compiling or adding it through Maven). After that, you just need to instance the fileIndexer class in your code in this way:

// All your previous code...

// Get the instance from the factory
FileIndexer fileIndexer = FileIndexerFactory.getFileIndexer();

// Now you can delegate the document creation 
// and the writer addition in the FileIndexer
fileIndexer.index(writer, fileToIndex);

// More code...

What file types are available?

  • Plain Text (*.txt)
  • PDF
  • HTML
  • Microsoft Word (*.doc) and (*.docx)
  • Microsoft PowerPoint (*.ppt)

TO-DO

  • PowerPoint files (*.pptx)
  • Excel files (*.xls) or (*.xlsx)
  • ePub
  • XML
  • JSON
  • LibreOffice/OpenOffice writer (*.odt)
  • HTML parser optimization

About

Multi-type file handler to obtain Apache Lucene Documents from different source files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages