Skip to content

codelibs/fess

Repository files navigation

Fess: Enterprise Search Server

Java CI with Maven License GitHub Release

Overview

Fess is an enterprise search server that you can install and run on any platform with a Java runtime. It is built on OpenSearch, but prior OpenSearch knowledge is not required: Fess is configured through a browser-based administration UI.

A built-in crawler collects documents from web sites, file systems, and data stores such as databases and CSV files. Many file formats are supported, including Microsoft Office, PDF, and ZIP archives.

Fess Site Search is a free alternative to Google Site Search that you can embed in your own website. For details, see the FSS JS Generator documentation.

Features

  • Full-text search with faceting, sorting, and search suggestions
  • Crawlers for web sites, file systems, and data stores (databases, cloud storage, and SaaS)
  • Support for many document formats, including Microsoft Office, PDF, and archives
  • Browser-based administration UI and a REST API
  • Role- and permission-based filtering of search results
  • Single sign-on with LDAP, OpenID Connect, SAML, SPNEGO, and Microsoft Entra ID
  • Multilingual user interface and text analysis (20+ languages)
  • Extensible through data store, ingest, script, and theme plugins

Requirements

  • Java 21 or later, for the TAR.GZ, ZIP, RPM, and DEB packages
  • OpenSearch as the search engine backend. The Docker images bundle it; for other installations you set it up separately.

See the Installation Guide for supported versions and setup details.

Getting Started

There are two ways to try Fess: download and install it yourself, or run it with Docker.

Download and Install/Run

Fess 15.7 can be downloaded from the Releases page. Downloads are available in three formats: DEB, RPM, and ZIP.

The following commands show how to use the ZIP download:

$ unzip fess-15.7.x.zip
$ cd fess-15.7.x
$ ./bin/fess

For more details, see the Installation Guide.

Docker

Docker images are published on ghcr.io. A Docker Compose file is available in the docker-fess repository.

Browser UI

Search UI

Admin UI

Register crawling targets on the Web, File, or Data Store configuration pages in the Admin UI, then start the crawler from the Scheduler page.

Migration from Another Search Provider

See MIGRATION.md.

Data Store

Fess can crawl the following storage locations and APIs:

Plugins

Fess can be extended with plugins. In addition to the data store connectors above, the following are available.

Theme

  • fess-themes: a collection of static themes, each a self-contained single-page app installed by uploading a ZIP in the admin UI

Ingest

Script

Development

Get the Source Code

  1. Clone the repository:

    $ git clone https://github.com/codelibs/fess.git
    
  2. Import it as a Maven project in your IDE.

Building Fess requires Java 21 or later and Maven.

Set Up OpenSearch Plugins

Run antrun:run to download plugins into the plugins directory:

$ mvn antrun:run

Run Fess

Run or debug org.codelibs.fess.FessBoot in your IDE, then open http://localhost:8080/.

Build a Package

Run the package goal to create the release file in target/releases:

$ mvn package
$ mvn rpm:rpm   # .rpm package
$ mvn jdeb:jdeb # .deb package

Generate Source Code

$ mvn dbflute:download # one-time setup
$ mvn dbflute:freegen
$ mvn license:format

Integration Tests

Integration tests require a running Fess server with OpenSearch.

  1. Build Fess:

     $ mvn antrun:run  # download OpenSearch plugins, if not done already
     $ mvn package
    
  2. Start the Fess server:

     $ unzip target/releases/fess-*.zip
     $ ./fess-*/bin/fess &
    

    Wait for Fess to become ready (this may take up to 60 seconds). It returns a JSON response when ready:

     $ curl -s "http://localhost:8080/api/v1/health"
    
  3. Clone the test data (required for SearchApiTests):

     $ git clone https://github.com/codelibs/fess-testdata.git /tmp/fess-testdata
    
  4. Run the tests:

     $ mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201"
    

    To run a single test case:

     $ mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201" -Dtest=SearchApiTests
    

Contributing

Contributions are welcome. If you find a bug or have a feature request, please open an issue. For questions and discussion, use the forum. Pull requests for fixes and improvements are appreciated; for larger changes, discussing the approach first is recommended.

Before committing, format the code and license headers:

$ mvn formatter:format
$ mvn license:format

Adding a Language

Fess is internationalized. To add labels and messages for a language, translate the property files below and rename them with your language code (fess_*_[lang].properties):

For search and index analysis, if doc.json contains lang_[lang] for your language, adjust the analyzer accordingly. See the OpenSearch documentation on analyzers for details. Pull requests for new languages are welcome.

Community and Support

Translations

This README is available in other languages:

Powered By

License

Fess is distributed under the Apache License 2.0.