Tutorial

Coming from 2.9? There is no in-place upgrade. See Upgrading from 2.9.

This tutorial use case is:

Search for the resumes (PDF or Word file which resides in One drive or local) and search for anything in the content using Kibana. For example location worked or the previous company, etc.

The fastest way to follow this tutorial is to run Elasticsearch and Kibana with Elastic’s start-local script, and FSCrawler with Docker. If you prefer a manual install, see Alternative: manual installation.

Note

The default Kibana dashboard requires Kibana 9.5+ (Dashboards API). See Kibana settings.

Alternative: manual installation

Use this path if you prefer to download Elasticsearch, Kibana, and FSCrawler yourself instead of using Docker.

Prerequisites

  • Java 17+ must be installed

  • JAVA_HOME must be defined

Install Elastic stack

Start FSCrawler

  • Download FSCrawler. See Installation.

  • Open a terminal and navigate to the fscrawler folder.

  • Type:

# On Linux/Mac
bin/fscrawler --setup resumes
# On Windows
.\bin\fscrawler --setup resumes
  • It will create a sample configuration file.

  • Go to the FSCrawler configuration folder to edit the job configuration. The FSCrawler configuration folder named .fscrawler is by default in the user home directory, like C:\Users\myuser on Windows platform or ~ on Linux/macOS. In this folder, you will find another folder named resumes. Enter this folder:

# On Linux/macOS
cd ~/.fscrawler/resumes
# On Windows
cd C:\Users\myuser\.fscrawler\resumes
  • Edit the _settings.yaml file which is in this folder and change the url value to your folder which contains the resumes you would like to index.

    On Linux/macOS:

    ---
    name: "resumes"
    fs:
      url: "/path/to/resumes"
    

    On Windows:

    ---
    name: "resumes"
    fs:
      url: "c:\\path\\to\\resumes"
    

    kibana.url defaults to http://127.0.0.1:5601, so you can leave it unset when Kibana runs locally. If your Elasticsearch cluster requires an API key (recommended), add it under elasticsearch as well. See Elasticsearch settings.

  • Start again FSCrawler:

# On Linux/macOS
bin/fscrawler resumes
# On Windows
.\bin\fscrawler resumes

FSCrawler should index all the documents inside your directory.

Note

If you want to start again reindexing from scratch instead of monitoring the changes, stop FSCrawler, restart it with the --restart option:

# On Linux/Mac
bin/fscrawler resumes --restart
# On Windows
.\bin\fscrawler resumes --restart

Open the default dashboard

On startup, FSCrawler creates a data view and a dashboard named FSCrawler - resumes (when Kibana is reachable and kibana.push_dashboard is enabled — the default). See Kibana settings.

  • Open Kibana

  • Go to Dashboards and open FSCrawler - resumes

You should see an overview of your indexed files (counts, extensions, directories, timeline, and a document table). Adjust the time picker if panels look empty — the dashboard uses file.indexing_date by default.

Search for the CVs

To search resume content (for example a previous company or a location), use Discover on the data view FSCrawler created:

Note

The UI in Kibana changes from time to time. The screenshots below might not be up to date with the current version of Kibana.

  • Open Discover

  • Select the data view for the resumes job (documents live in resumes_docs by default)

  • Adjust the time picker if needed so you cover when the files were indexed

  • Add columns such as content, file.filename, file.extension, file.url, or file.filesize

  • Search for content, for example collaborateurs, and inspect the highlighted matches

Adding new files

Just copy new files in the resumes folder. It could take up to 15 minutes for FSCrawler to detect the change. This is the default value for update_rate option. You can also change this value. See Update rate.

Note

On some OS, moving files won’t touch the modified date and the “new” files won’t be detected. It’s then better probably to copy the files instead.

You might have to “touch” the files like:

touch /path/to/resumes/CV2.pdf

Refresh the dashboard or Discover in Kibana to see the changes.