Skip to content

punkrocker178/java-file-explorer-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About:

This is a simple javafx project about File explorer with search functionality of Apache Lucene

Prerequisite:

  • JDK11
  • JavaFX 11
  • Add javafx module path in your project : --module-path C:\Users\<user>\Downloads\javafx-sdk-11\lib --add-modules=javafx.controls
  • Guide
    Note: module-path is the path to your downloaded JavaFX

Upcoming work:

  • Implement Lucene index & search functions
  • Enhance UI
  • Open file
  • Create / Remove / Rename folders
  • Apply multithreading or async task for lucene indexing

Program Flow:

  1. When first started, user is prompted to choose where to store index files for lucene to run
  2. After selected the directory, that directory will be the base path of the application. Lucene starts indexing the base path.
  3. After Lucene done indexing you can type some content then click the search button
  4. Results will show file name and file location

References:

Run:

Open terminal and run the command accordingly (Suppose you are in the project directory)

  • Windows: java --module-path .\library\javafx-sdk-11.0.2_windows\lib --add-modules=javafx.controls,javafx.fxml -Dfile.encoding=windows-1252 -jar .\out\artifacts\java_lucene_project_jar\java_lucene_project.jar
  • Linux: java --module-path ./library/javafx-sdk-11.0.2_linux/lib --add-modules=javafx.controls,javafx.fxml -Dfile.encoding=UTF-8 -jar ./out/artifacts/java_lucene_project_jar/java_lucene_project.jar

Demo:

Choose Index directory:
alt text

File explorer view:
alt text

Results from lucene index:
alt text

About

File explorer and Lucene search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages