Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 1.86 KB

File metadata and controls

65 lines (38 loc) · 1.86 KB

Code Search on Fess

Fess is an Enterprise Search Server. This Docker environment provides a Source Code Search Server using Fess.

Public Site

Getting Started

Setup

First, clone the repository and navigate into the directory:

$ git clone https://github.com/codelibs/docker-codesearch.git
$ cd docker-codesearch
$ bash ./bin/setup.sh

Start the Server

To start the server, use Docker Compose:

docker compose -f compose.yaml up -d

Once the server is running, access it at http://localhost:8080/.

Create an Access Token

To use the Admin API for Fess, create an access token with the {role}admin-api permission on the Admin Access Token page (http://localhost:8080/admin/accesstoken/).

For more details, see the Admin Access Token Guide.

Create DataStore Configuration for GitHub

You can create DataStore and Scheduler settings on Fess using the bin/register_github.sh script:

register_github.sh ACCESS_TOKEN FESS_URL REPO_DOMAIN REPO_ORG REPO_NAME

Example:
$ bash ./bin/register_github.sh ...token... http://localhost:8080 github.com codelibs fess

Check the created settings on the DataConfig page (http://localhost:8080/admin/dataconfig/).

Start the Crawler

To start the crawler, run Default Crawler or Data Crawler - ... on the Admin Scheduler page (http://localhost:8080/admin/scheduler/).

Search

You can view search results at http://localhost:8080/.

Stop the Server

To stop the server, use the following command:

docker compose -f compose.yaml down