Document Boost

Overview

This page explains the configuration settings related to document boost. By configuring document boost settings, you can position documents at the top of search results regardless of search terms.

Management Operations

Display Method

To open the document boost configuration list page shown below, click [Crawler > Document Boost] in the left menu.

image0

Click the configuration name to edit it.

Creating Configuration

To open the document boost configuration page, click the New button.

image1

Configuration Items

Condition

Specifies the condition for documents to position at the top. For example, to display URLs containing https://www.n2sm.net/ at the top, write url.matches(”https://www.n2sm.net/.*”). Conditions are written in the syntax of the scripting engine specified in “Script Type” below.

Boost Value Expression

Specifies the weighting value for documents. Expressions are written in the syntax of the scripting engine specified in “Script Type” below.

Script Type

Specifies the scripting engine used to evaluate the condition and boost value expression. New configurations are prefilled with javascript. Selecting groovy requires the fess-script-groovy plugin. If left blank, the expressions are evaluated as Groovy.

Warning

Under JavaScript, write the condition and the boost value expression as bare expressions with no trailing semicolon. Text that can only be parsed as a block of statements evaluates to null unless it contains an explicit return. See How Scripts Are Evaluated (in JavaScript Scripting Guide).

Sort Order

Configures the sort order for document boost.

Deleting Configuration

Click the configuration name on the list page, then click the Delete button to display a confirmation screen. Click the Delete button to remove the configuration.