Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GitBucket plugin for Fess

NotificationsYou must be signed in to change notification settings

codelibs/gitbucket-fess-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitbucket-fess-plugin is aGitBucket plugin that providesglobal search, that is, search across multiple repositories.

Users can search for:

  • Code in all public repositories
  • Code in private repositories where you can access
  • Issues /Pull requests
  • Wiki pages

ScreenShot

This plugin cooperates withFess, which is a full-text search server powered byElasticsearch.But, special knowledge is NOT required to use both Fess and this plugin.

Overview

Why Fess?

  • open source software provided under Apache license
  • easy to deploy
  • powerful search engine based onElasticsearch
  • can index/search documents in30+ languages
  • supportsmany file formats (pdf, MS Office, etc.)

Links

Release

SeeMaven Repository.

Plugin versionGitBucket versionFess version
1.7.x4.35 -11.0.1 -, 12.x
1.6.x4.3411.0.1 -, 12.x
1.5.x4.32 -11.0.1 -, 12.x
1.4.x4.24.1 -11.0.1 -, 12.x
1.3.x4.20 -11.0.1 -, 12.x
1.2.x4.15 -11.0.1 -, 12.x
1.1.x4.{11, 12, 13, 14}11.0.1 -, 12.x
1.0.04.1011.0.1
1.0.0-beta24.710.3
1.0.0-beta14.610.3

Getting Started

Installation

Downloadgitbucket-fess-plugin jar file fromthe release page andput it into~/.gitbucket/plugins (If the directory does not exist, create it by hand).

Setting Up

After the installation, the admin user sets up both of GitBucket and Fess.

The flow of the setting is like the following:

Step 1. Run GitBucket and Fess

RunGitBucket andFess.If you run the both applications onlocalhost, use different port numbers.

Example

GitBucket:http://localhost:8080/gitbucket/
$ java -jar gitbucket.war --port=8080 --prefix=gitbucket
Fess:http://localhost:8081/fess/
$ ./bin/fess -Dfess.port=8081 -Dfess.context.path=/fess/

Step 2. Generate Token for Crawler @GitBucket

Access tohttp://[GitBucket URL]/[User Name]/_application as a GitBucket's admin user and generate an access token.This token will be used by crawlers of Fess.

Generate GitBucket's token

Step 3. Set up Crawler @Fess

Access tohttp://[Fess URL]/admin/dataconfig/ as a Fess's admin user and set up a data crawler.

Then, fill each form as below:

  • Name: String
  • Handler Name:GitBucketDataStore
  • Parameter:
url=http://[GitBucket URL]token=[GitBucket's Token generated in Step 2]

You don't have to change other values.

GitBucketDataStore config

After you create a configuration successfully, you can find it inhttp://[Fess URL]/admin/dataconfig/.Then, click it and create a new crawling job.

Create a new job

You can set up a crawling schedule here, but you can also change it later.Thus, if you are new to Fess, you don't need to change any value here.(For more details about scheduling, seea later section.)

Step 4. Run Crawler @Fess

Move tohttp://[Fess URL]/admin/scheduler/.Then, you will find the job created in Step 3 on the top of the list.Choose and start it.

Start a crawler

If a crawler starts successfully, the status of the job scheduler becomesRunning like the following:

Crawler is running

Crawling process takes time, depending on a number of contents in GitBucket.Fess stores codes on the default branch in each repository.After the crawling job finishes, you can search GitBucket's contents on Fess.

Step 5. Register Fess's URL @GitBucket

This is the final step.Access tohttp://[GitBucket URL]/fess/settings as an admin user and register the URL ofFess's top page.Note that the following image uses the URL of Fess started with flags-Dfess.port=8081 -Dfess.context.path=/fess/.

You can also register aFess's access token here.It is required for private repository search, but you can leave this form empty now.For more details, seethe next section.

Register a token

Then, global search will be enabled!

Private Repository Search

If the admin user registers aFess's access token athttp://[GitBucket URL]/fess/settings,users can explore their private repositories.

How to generate Fess's access token

Access tohttp://[Fess URL]/admin/accesstoken/ as an admin user andclick theCreate New button.

Next, fill in the form like the following:

  • Name: String
  • Permissions: empty
  • Parameter Name:permission

Generate a token on Fess

Then, access token will be created.

Generated token

Continuous Crawl

By setting upjob schedulers on Fess,you can run data crawlers periodically to keep search results up to date.

Access tohttp://[FessURL]/admin/scheduler/ and choose a crawler job.Then, you can setting up the value ofSchedule inCron-format.

Development Information

Build

You need toinstall sbt to build this plugin from source code.

$ sbt package

Code Format

$ sbt scalafmt

Contribution

Any contribution will be appreciated!Please sendissues orpull requests.

For Maintainers

If you want to increment the version number, please update values in:

  • build.sbt
  • src/main/scala/Plugin.scala

About

GitBucket plugin for Fess

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp