Integration Server Administrator's Guide : Configuring Ehcache on Integration Server : Making a Cache Searchable : Defining Attributes
Defining Attributes
 
Extracting Attributes by Class
When making a cache searchable, you can also define the attributes to use in searches. Attributes are extracted from keys or values during searches. You can extract attributes from keys or values using the following methods:
*Extract by Expression. Specify expressions based on which attributes are extracted from keys or values. For example,
key.name, value.age
*Extract by Class. Provide the extractor class and optionally, the properties for the extractor class. The properties are specified as key/value pairs separated by commas (,). The extractor must be an implementation of net.sf.ehcache.search.attribute.AttributeExtractor. For more information about attribute extractors, see Ehcache product documentation for 2.8 at http://ehcache.org/documentation.
A jar file containing the extractor must be placed in the Integration Server_directory \instances\instance_name \lib\jars\custom directory or the Integration Server_directory \instances\instance_name \packages\packageName \code\jars directory.
For a sample extractor, see Extracting Attributes by Class.
Keep the following points in mind when making a cache searchable:
*You cannot configure a system cache to be searchable.
*You cannot make a cache that already contains data searchable.
For more information about making a cache searchable, see Creating a Cache.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback