Implementing new QueryFunction classes

In addition to using the provided QueryFunction classes, you can also create your own.

Endeca provides tools you can use to create your own QueryFilter and QueryConfig classes. These classes define new operations that can be applied to a QueryState. Both of these classes inherit from com.endeca.portal.data.QueryFunction. A QueryFilter reduces the result set, while a QueryConfig modifies the configuration of the results returned. This includes functions such as paging, sorting, exposing refinements, and setting the number of results returned.

QueryFilters are persisted to the data source state when a component calls setQueryState() and are therefore shared across all components that are bound to the data source. QueryConfigs are not persisted and therefore are specific to the component that applied them.