Cheshire3 Objects: Extracter

Description

An Extracter is a processing object called by an Index with the value of an evaluated XPath expression or with a string. Example normalisers might extract keywords from an element or the entire contents thereof as a single string. Extracters must also be used on the query terms to apply the same keyword processing rules, for example.

Implementations
API

FunctionParametersReturnsDescription
__init__config, parent 
process_stringsession, stringhashProcess a raw string, eg from an attribute value
process_nodesession, domNodehashProcess a DOM node
process_eventListsession, list of SAX eventshashProcess a list of SAX events