public class RegexpBoostProcessor extends UpdateRequestProcessor
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?://my.domain.com/temp.* 0.2
Both inputField, boostField and boostFilename are mandatory parameters.
Modifier and Type | Field and Description |
---|---|
protected static String |
BOOST_FIELD_PARAM |
protected static String |
BOOST_FILENAME_PARAM |
protected static String |
INPUT_FIELD_PARAM |
next
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled() |
void |
processAdd(AddUpdateCommand command) |
void |
processBoost(AddUpdateCommand command) |
void |
setEnabled(boolean enabled) |
close, doClose, finish, processCommit, processDelete, processMergeIndexes, processRollback
protected static final String INPUT_FIELD_PARAM
protected static final String BOOST_FIELD_PARAM
protected static final String BOOST_FILENAME_PARAM
public void processAdd(AddUpdateCommand command) throws IOException
processAdd
in class UpdateRequestProcessor
IOException
public void processBoost(AddUpdateCommand command)
public boolean isEnabled()
public void setEnabled(boolean enabled)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.