Class RegexpBoostProcessor

  • public class RegexpBoostProcessor
    extends UpdateRequestProcessor
    A processor which will match content of "inputField" against regular expressions found in "boostFilename", and if it matches will return the corresponding boost value from the file and output this to "boostField" as a double value. If more than one pattern matches, the boosts from each are multiplied.

    A typical use case may be to match a URL against patterns to boost or deboost web documents based on the URL itself:

     # Format of each line: <pattern><TAB><boost>
     # Example:
     https?://*  0.2

    Both inputField, boostField and boostFilename are mandatory parameters.